mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Add guard in layers destruction.
This commit is contained in:
parent
b683d84df1
commit
3904a9f9a0
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue