mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 23:25:15 +00:00
Fix possible crash in call top bar hiding.
This commit is contained in:
@@ -2090,7 +2090,12 @@ void MainWidget::showAll() {
|
|||||||
}
|
}
|
||||||
if (_callTopBar) {
|
if (_callTopBar) {
|
||||||
_callTopBar->setVisible(true);
|
_callTopBar->setVisible(true);
|
||||||
_callTopBarHeight = _callTopBar->height();
|
|
||||||
|
// 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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
updateControlsGeometry();
|
updateControlsGeometry();
|
||||||
floatPlayerCheckVisibility();
|
floatPlayerCheckVisibility();
|
||||||
@@ -2172,9 +2177,9 @@ void MainWidget::updateControlsGeometry() {
|
|||||||
const auto shadowTop = _controller->window().verticalShadowTop();
|
const auto shadowTop = _controller->window().verticalShadowTop();
|
||||||
const auto shadowHeight = height() - shadowTop;
|
const auto shadowHeight = height() - shadowTop;
|
||||||
_sideShadow->setGeometryToLeft(
|
_sideShadow->setGeometryToLeft(
|
||||||
dialogsWidth,
|
dialogsWidth,
|
||||||
shadowTop,
|
shadowTop,
|
||||||
st::lineWidth,
|
st::lineWidth,
|
||||||
shadowHeight);
|
shadowHeight);
|
||||||
if (_thirdShadow) {
|
if (_thirdShadow) {
|
||||||
_thirdShadow->setGeometryToLeft(
|
_thirdShadow->setGeometryToLeft(
|
||||||
|
Reference in New Issue
Block a user