mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Enable / disable side bar based on filters.
This commit is contained in:
@@ -69,12 +69,6 @@ auto GenerateCodes() {
|
||||
codes.emplace(qsl("crashplease"), [](::Main::Session *session) {
|
||||
Unexpected("Crashed in Settings!");
|
||||
});
|
||||
codes.emplace(qsl("workmode"), [](::Main::Session *session) {
|
||||
auto text = Global::DialogsFiltersEnabled() ? qsl("Disable filters?") : qsl("Enable filters?");
|
||||
Ui::show(Box<ConfirmBox>(text, [] {
|
||||
Core::App().switchWorkMode();
|
||||
}));
|
||||
});
|
||||
codes.emplace(qsl("moderate"), [](::Main::Session *session) {
|
||||
auto text = Global::ModerateModeEnabled() ? qsl("Disable moderate mode?") : qsl("Enable moderate mode?");
|
||||
Ui::show(Box<ConfirmBox>(text, [] {
|
||||
|
Reference in New Issue
Block a user