2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 00:15:42 +00:00

Switch Info between columns and layer.

This commit is contained in:
John Preston
2017-09-19 13:32:34 +03:00
parent 3fbb643d51
commit 5586d231de
11 changed files with 116 additions and 41 deletions

View File

@@ -364,7 +364,7 @@ void MainWindow::destroyLayerDelayed() {
void MainWindow::ui_hideSettingsAndLayer(LayerOptions options) {
if (_layerBg) {
_layerBg->hideAll();
_layerBg->hideAll(options);
if (options & LayerOption::ForceFast) {
destroyLayerDelayed();
}
@@ -420,7 +420,7 @@ void MainWindow::ui_showBox(
}
} else {
if (_layerBg) {
_layerBg->hideTopLayer();
_layerBg->hideTopLayer(options);
if ((options & LayerOption::ForceFast) && !_layerBg->layerShown()) {
destroyLayerDelayed();
}
@@ -721,6 +721,10 @@ void MainWindow::layerFinishedHide(LayerStackWidget *was) {
}
}
bool MainWindow::takeThirdSectionFromLayer() {
return _layerBg ? _layerBg->takeToThirdSection() : false;
}
void MainWindow::fixOrder() {
if (_layerBg) _layerBg->raise();
if (_mediaPreview) _mediaPreview->raise();