2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Removed App:wnd for opening settings.

Removed unused App::showSettings from facades.
This commit is contained in:
23rd
2021-02-03 04:58:27 +03:00
committed by John Preston
parent 019e691fbb
commit 1f80c297ec
9 changed files with 31 additions and 20 deletions

View File

@@ -930,8 +930,8 @@ void MainMenu::refreshMenu() {
_controller->session().supportTemplates().reload();
}, &st::mainMenuReload, &st::mainMenuReloadOver);
}
_menu->addAction(tr::lng_menu_settings(tr::now), [] {
App::wnd()->showSettings();
_menu->addAction(tr::lng_menu_settings(tr::now), [=] {
controller->showSettings();
}, &st::mainMenuSettings, &st::mainMenuSettingsOver);
_nightThemeAction = std::make_shared<QPointer<QAction>>();