mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Use Window::Controller to manage MainWindow.
This commit is contained in:
@@ -193,7 +193,8 @@ quint32 djbStringHash(QString string) {
|
||||
|
||||
} // namespace
|
||||
|
||||
MainWindow::MainWindow() {
|
||||
MainWindow::MainWindow(not_null<Window::Controller*> controller)
|
||||
: Window::MainWindow(controller) {
|
||||
connect(&_psCheckStatusIconTimer, SIGNAL(timeout()), this, SLOT(psStatusIconCheck()));
|
||||
_psCheckStatusIconTimer.setSingleShot(false);
|
||||
|
||||
|
@@ -15,7 +15,7 @@ class MainWindow : public Window::MainWindow {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MainWindow();
|
||||
explicit MainWindow(not_null<Window::Controller*> controller);
|
||||
|
||||
void psFirstShow();
|
||||
void psInitSysMenu();
|
||||
|
Reference in New Issue
Block a user