mirror of https://github.com/procxx/kepka.git
Beta version 1.4.6: Fix crash on quit.
This commit is contained in:
parent
91d784f9bd
commit
4532e59933
|
@ -904,6 +904,7 @@ void MainWindow::updateIsActiveHook() {
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow() {
|
MainWindow::~MainWindow() {
|
||||||
|
ui_hideSettingsAndLayer(anim::type::instant);
|
||||||
if (_clearManager) {
|
if (_clearManager) {
|
||||||
_clearManager->stop();
|
_clearManager->stop();
|
||||||
_clearManager = nullptr;
|
_clearManager = nullptr;
|
||||||
|
|
|
@ -400,11 +400,16 @@ void LayerStackWidget::hideLayers(anim::type animated) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LayerStackWidget::hideAll(anim::type animated) {
|
void LayerStackWidget::hideAll(anim::type animated) {
|
||||||
startAnimation([] {}, [this] {
|
const auto clear = [=] {
|
||||||
clearLayers();
|
clearLayers();
|
||||||
clearSpecialLayer();
|
clearSpecialLayer();
|
||||||
_mainMenu.destroyDelayed();
|
_mainMenu.destroyDelayed();
|
||||||
}, Action::HideAll, animated);
|
};
|
||||||
|
if (App::quitting()) {
|
||||||
|
clear();
|
||||||
|
} else {
|
||||||
|
startAnimation([] {}, clear, Action::HideAll, animated);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LayerStackWidget::hideTopLayer(anim::type animated) {
|
void LayerStackWidget::hideTopLayer(anim::type animated) {
|
||||||
|
|
Loading…
Reference in New Issue