2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Hide floating player if video message is visible.

This commit is contained in:
John Preston
2017-05-23 17:04:59 +03:00
parent b7550f63c9
commit c58a48276f
9 changed files with 77 additions and 32 deletions

View File

@@ -466,6 +466,8 @@ private:
template <typename ToggleCallback>
Float(QWidget *parent, HistoryItem *item, ToggleCallback callback);
bool hiddenByWidget = false;
bool hiddenByHistory = false;
bool visible = false;
Animation visibleAnimation;
Window::Corner corner = Window::Corner::TopRight;
@@ -574,7 +576,8 @@ private:
void clearCachedBackground();
void checkCurrentFloatPlayer();
void toggleFloatPlayer(Float *instance, bool visible);
void toggleFloatPlayer(Float *instance);
void checkFloatPlayerVisibility();
void updateFloatPlayerPosition(Float *instance);
void removeFloatPlayer(Float *instance);
Float *currentFloatPlayer() const {