mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Use separate TopBar for History and Overview.
Move TopBar widget to History and Overview from MainWidget.
This commit is contained in:
@@ -52,6 +52,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||
#include "window/window_main_menu.h"
|
||||
#include "core/task_queue.h"
|
||||
#include "auth_session.h"
|
||||
#include "window/window_controller.h"
|
||||
|
||||
ConnectingWidget::ConnectingWidget(QWidget *parent, const QString &text, const QString &reconnect) : TWidget(parent)
|
||||
, _reconnect(this, QString()) {
|
||||
@@ -350,7 +351,7 @@ void MainWindow::setupMain(const MTPUser *self) {
|
||||
|
||||
t_assert(AuthSession::Exists());
|
||||
|
||||
_main.create(bodyWidget());
|
||||
_main.create(bodyWidget(), std::make_unique<Window::Controller>(this));
|
||||
_main->show();
|
||||
updateControlsGeometry();
|
||||
|
||||
|
Reference in New Issue
Block a user