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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user