mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 00:55:12 +00:00
Beta version 1.4.6: Fix crash on quit.
This commit is contained in:
@@ -400,11 +400,16 @@ void LayerStackWidget::hideLayers(anim::type animated) {
|
||||
}
|
||||
|
||||
void LayerStackWidget::hideAll(anim::type animated) {
|
||||
startAnimation([] {}, [this] {
|
||||
const auto clear = [=] {
|
||||
clearLayers();
|
||||
clearSpecialLayer();
|
||||
_mainMenu.destroyDelayed();
|
||||
}, Action::HideAll, animated);
|
||||
};
|
||||
if (App::quitting()) {
|
||||
clear();
|
||||
} else {
|
||||
startAnimation([] {}, clear, Action::HideAll, animated);
|
||||
}
|
||||
}
|
||||
|
||||
void LayerStackWidget::hideTopLayer(anim::type animated) {
|
||||
|
Reference in New Issue
Block a user