mirror of https://github.com/procxx/kepka.git
fixed case insensitive contacts filtering in boxes, setting as default tg scheme handler
This commit is contained in:
parent
7170a0e5c0
commit
77b35891d4
|
@ -305,6 +305,8 @@ void AddParticipantInner::updateSel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddParticipantInner::updateFilter(QString filter) {
|
void AddParticipantInner::updateFilter(QString filter) {
|
||||||
|
filter = textSearchKey(filter);
|
||||||
|
|
||||||
_time = unixtime();
|
_time = unixtime();
|
||||||
QStringList f;
|
QStringList f;
|
||||||
if (!filter.isEmpty()) {
|
if (!filter.isEmpty()) {
|
||||||
|
|
|
@ -250,6 +250,8 @@ void ContactsInner::updateSel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ContactsInner::updateFilter(QString filter) {
|
void ContactsInner::updateFilter(QString filter) {
|
||||||
|
filter = textSearchKey(filter);
|
||||||
|
|
||||||
QStringList f;
|
QStringList f;
|
||||||
if (!filter.isEmpty()) {
|
if (!filter.isEmpty()) {
|
||||||
QStringList filterList = filter.split(cWordSplit(), QString::SkipEmptyParts);
|
QStringList filterList = filter.split(cWordSplit(), QString::SkipEmptyParts);
|
||||||
|
|
|
@ -276,6 +276,8 @@ void NewGroupInner::updateSel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NewGroupInner::updateFilter(QString filter) {
|
void NewGroupInner::updateFilter(QString filter) {
|
||||||
|
filter = textSearchKey(filter);
|
||||||
|
|
||||||
QStringList f;
|
QStringList f;
|
||||||
if (!filter.isEmpty()) {
|
if (!filter.isEmpty()) {
|
||||||
QStringList filterList = filter.split(cWordSplit(), QString::SkipEmptyParts);
|
QStringList filterList = filter.split(cWordSplit(), QString::SkipEmptyParts);
|
||||||
|
|
|
@ -638,6 +638,7 @@ void objc_finish() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void objc_registerCustomScheme() {
|
void objc_registerCustomScheme() {
|
||||||
|
LSSetDefaultHandlerForURLScheme(CFSTR("tg"), (CFStringRef)[[NSBundle mainBundle] bundleIdentifier]);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL _execUpdater(BOOL update = YES) {
|
BOOL _execUpdater(BOOL update = YES) {
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
<array>
|
<array>
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
<string>Editor</string>
|
<string>Viewer</string>
|
||||||
<key>CFBundleURLIconFile</key>
|
<key>CFBundleURLIconFile</key>
|
||||||
<string>AppIcon.icns</string>
|
<string>AppIcon.icns</string>
|
||||||
<key>CFBundleURLName</key>
|
<key>CFBundleURLName</key>
|
||||||
<string>com.tdesktop.TelegramUrl</string>
|
<string>com.tdesktop.Telegram</string>
|
||||||
<key>CFBundleURLSchemes</key>
|
<key>CFBundleURLSchemes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>tg</string>
|
<string>tg</string>
|
||||||
|
|
Loading…
Reference in New Issue