mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 00:55:12 +00:00
Add guard in layers destruction.
This commit is contained in:
@@ -559,9 +559,12 @@ void LayerStackWidget::startAnimation(
|
||||
} else {
|
||||
setupNewWidgets();
|
||||
setCacheImages();
|
||||
const auto weak = make_weak(this);
|
||||
clearOldWidgets();
|
||||
prepareForAnimation();
|
||||
_background->startAnimation(action);
|
||||
if (weak) {
|
||||
prepareForAnimation();
|
||||
_background->startAnimation(action);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user