mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 17:57:51 +00:00
Better fix for a crash on quit.
This commit is contained in:
@@ -400,16 +400,11 @@ void LayerStackWidget::hideLayers(anim::type animated) {
|
||||
}
|
||||
|
||||
void LayerStackWidget::hideAll(anim::type animated) {
|
||||
const auto clear = [=] {
|
||||
startAnimation([] {}, [=] {
|
||||
clearLayers();
|
||||
clearSpecialLayer();
|
||||
_mainMenu.destroyDelayed();
|
||||
};
|
||||
if (App::quitting()) {
|
||||
clear();
|
||||
} else {
|
||||
startAnimation([] {}, clear, Action::HideAll, animated);
|
||||
}
|
||||
}, Action::HideAll, animated);
|
||||
}
|
||||
|
||||
void LayerStackWidget::hideTopLayer(anim::type animated) {
|
||||
|
||||
Reference in New Issue
Block a user