2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Restore player delegate non-delayed (crashfix).

This commit is contained in:
John Preston
2018-11-09 19:16:27 +04:00
parent 2b95b96fa3
commit e5949dbb86
3 changed files with 19 additions and 3 deletions

View File

@@ -666,7 +666,7 @@ void LayerStackWidget::showSpecialLayer(
object_ptr<LayerWidget> layer,
anim::type animated) {
startAnimation([this, layer = std::move(layer)]() mutable {
_specialLayer.destroyDelayed();
_specialLayer.destroy();
_specialLayer = std::move(layer);
initChildLayer(_specialLayer);
}, [this] {
@@ -699,7 +699,7 @@ void LayerStackWidget::showMainMenu(
_mainMenu->setParent(this);
}, [this] {
clearLayers();
_specialLayer.destroyDelayed();
_specialLayer.destroy();
}, Action::ShowMainMenu, animated);
}