mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Folder context menu option to reset default
This commit is contained in:
@@ -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";
|
||||
|
@@ -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": "Скрыть кнопку изменения",
|
||||
|
@@ -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),
|
||||
|
Reference in New Issue
Block a user