2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Remove glitch with video messages floating player.

This commit is contained in:
John Preston
2017-08-01 20:59:43 +03:00
parent 9d81ea59dd
commit 96a2af842f
2 changed files with 4 additions and 1 deletions

View File

@@ -271,7 +271,7 @@ void MainWidget::checkCurrentFloatPlayer() {
}
void MainWidget::toggleFloatPlayer(gsl::not_null<Float*> instance) {
auto visible = !instance->hiddenByHistory && !instance->hiddenByWidget && !instance->widget->detached();
auto visible = !instance->hiddenByHistory && !instance->hiddenByWidget && instance->widget->isReady();
if (instance->visible != visible) {
instance->widget->resetMouseState();
instance->visible = visible;