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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user