2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Removed App::wnd for opening about box.

This commit is contained in:
23rd
2021-02-03 05:55:01 +03:00
committed by John Preston
parent b4af805521
commit fb9a34a069
2 changed files with 16 additions and 12 deletions

View File

@@ -1107,12 +1107,9 @@ void MainWindow::createGlobalMenu() {
tr::now,
lt_telegram,
qsl("Telegram")),
[] {
if (App::wnd() && App::wnd()->isHidden()) {
App::wnd()->showFromTray();
}
Ui::show(Box<AboutBox>());
[=] {
ensureWindowShown();
controller().show(Box<AboutBox>());
});
about->setMenuRole(QAction::AboutQtRole);