2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Rewrite shortcuts using QAction.

That way they don't depend on the main window.
This commit is contained in:
John Preston
2023-01-18 11:58:57 +04:00
parent 5154fe0044
commit 3e332ad8e7
4 changed files with 49 additions and 41 deletions

View File

@@ -19,6 +19,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "main/main_account.h" // Account::sessionValue.
#include "core/application.h"
#include "core/sandbox.h"
#include "core/shortcuts.h"
#include "lang/lang_keys.h"
#include "data/data_session.h"
#include "data/data_forum_topic.h"
@@ -352,6 +353,8 @@ MainWindow::MainWindow(not_null<Controller*> controller)
updateControlsGeometry();
}, _outdated->lifetime());
}
Shortcuts::Listen(this);
}
Main::Account &MainWindow::account() const {