mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Better fix for a crash on quit.
This commit is contained in:
@@ -265,7 +265,9 @@ void LayerWidget::closeHook() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LayerWidget::~LayerWidget() {
|
LayerWidget::~LayerWidget() {
|
||||||
restoreFloatPlayerDelegate();
|
if (!App::quitting()) {
|
||||||
|
restoreFloatPlayerDelegate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Info
|
} // namespace Info
|
||||||
|
@@ -904,7 +904,6 @@ 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,16 +400,11 @@ void LayerStackWidget::hideLayers(anim::type animated) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LayerStackWidget::hideAll(anim::type animated) {
|
void LayerStackWidget::hideAll(anim::type animated) {
|
||||||
const auto clear = [=] {
|
startAnimation([] {}, [=] {
|
||||||
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) {
|
||||||
|
Reference in New Issue
Block a user