Better fix for a crash on quit.

This commit is contained in:
John Preston
2018-11-10 12:06:44 +04:00
parent 4532e59933
commit 48889ce56e
3 changed files with 5 additions and 9 deletions
+2 -7
View File
@@ -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) {