mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix possible crash in call top bar hiding.
This commit is contained in:
parent
04f95e905e
commit
c62b39e287
1 changed files with 8 additions and 3 deletions
|
@ -2090,8 +2090,13 @@ void MainWidget::showAll() {
|
||||||
}
|
}
|
||||||
if (_callTopBar) {
|
if (_callTopBar) {
|
||||||
_callTopBar->setVisible(true);
|
_callTopBar->setVisible(true);
|
||||||
|
|
||||||
|
// show() could've send pending resize event that would update
|
||||||
|
// the height value and destroy the top bar if it was hiding.
|
||||||
|
if (_callTopBar) {
|
||||||
_callTopBarHeight = _callTopBar->height();
|
_callTopBarHeight = _callTopBar->height();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
updateControlsGeometry();
|
updateControlsGeometry();
|
||||||
floatPlayerCheckVisibility();
|
floatPlayerCheckVisibility();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue