mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 17:51: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 {
|
} else {
|
||||||
setupNewWidgets();
|
setupNewWidgets();
|
||||||
setCacheImages();
|
setCacheImages();
|
||||||
|
const auto weak = make_weak(this);
|
||||||
clearOldWidgets();
|
clearOldWidgets();
|
||||||
prepareForAnimation();
|
if (weak) {
|
||||||
_background->startAnimation(action);
|
prepareForAnimation();
|
||||||
|
_background->startAnimation(action);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue