mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Rewrite shortcuts using QAction.
That way they don't depend on the main window.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user