mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Left main menu.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user