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

Left main menu.

This commit is contained in:
John Preston
2016-11-11 22:51:59 +03:00
parent 807bebb3cf
commit a74baaea36
12 changed files with 320 additions and 11 deletions

View File

@@ -48,6 +48,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
#include "window/notifications_manager.h"
#include "window/window_theme.h"
#include "window/window_theme_warning.h"
#include "window/window_main_menu.h"
ConnectingWidget::ConnectingWidget(QWidget *parent, const QString &text, const QString &reconnect) : TWidget(parent)
, _shadow(st::boxShadow)
@@ -406,6 +407,17 @@ void MainWindow::showSettings() {
_layerBg->showSpecialLayer(_settings);
}
void MainWindow::showMainMenu() {
if (_passcode) return;
if (isHidden()) showFromTray();
if (!_layerBg) {
_layerBg.create(bodyWidget());
}
_layerBg->showMainMenu();
}
void MainWindow::ui_hideSettingsAndLayer(ShowLayerOptions options) {
if (_layerBg) {
_layerBg->onClose();