2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Folder context menu option to reset default

This commit is contained in:
RadRussianRus
2020-04-01 07:46:41 +03:00
parent 9780b8a252
commit d4894cda6c
3 changed files with 6 additions and 0 deletions

View File

@@ -2465,6 +2465,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"ktg_filters_default" = "Default folder";
"ktg_filters_context_edit_all" = "Edit folders";
"ktg_filters_context_make_default" = "Make folder default";
"ktg_filters_context_reset_default" = "Reset default folder";
"ktg_settings_filters" = "Folders";
"ktg_settings_filters_only_unmuted_counter" = "Do not count muted chats";

View File

@@ -101,6 +101,7 @@
"ktg_filters_default": "Папка по умолчанию",
"ktg_filters_context_edit_all": "Изменить папки",
"ktg_filters_context_make_default": "Сделать папкой по умолчанию",
"ktg_filters_context_reset_default": "Сброс папки по умолчанию",
"ktg_settings_filters": "Папки",
"ktg_settings_filters_only_unmuted_counter": "Не считать чаты без уведомлений",
"ktg_settings_filters_hide_edit": "Скрыть кнопку изменения",

View File

@@ -316,6 +316,10 @@ void FiltersMenu::showMenu(QPoint position, FilterId id) {
_popupMenu->addAction(
tr::ktg_filters_context_make_default(tr::now),
crl::guard(&_outer, [=] { setDefaultFilter(id); }));
} else if (id) {
_popupMenu->addAction(
tr::ktg_filters_context_reset_default(tr::now),
crl::guard(&_outer, [=] { setDefaultFilter(0); }));
}
_popupMenu->addAction(
tr::lng_filters_context_remove(tr::now),