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

Improve main menu > settings transition animation.

Remove full window cache in case of settings shown as a section.
This commit is contained in:
John Preston
2018-09-06 17:58:43 +03:00
parent 482ecf12ff
commit cfce189201
7 changed files with 42 additions and 5 deletions

View File

@@ -2399,6 +2399,9 @@ void MainWidget::showNewSection(
auto direction = (back || settingSection->forceAnimateBack())
? Window::SlideDirection::FromLeft
: Window::SlideDirection::FromRight;
if (Adaptive::OneColumn()) {
_controller->removeLayerBlackout();
}
settingSection->showAnimated(direction, animationParams);
} else {
settingSection->showFast();