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