2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Detach SystemMediaControls from Window::Controller.

This commit is contained in:
John Preston
2023-01-19 09:38:52 +04:00
parent 6b8f80bd63
commit cdfdccbb66
12 changed files with 67 additions and 53 deletions

View File

@@ -233,7 +233,6 @@ public:
using FloatDelegate::floatPlayerAreaUpdated;
void closeBothPlayers();
void stopAndClosePlayer();
bool preventsCloseSection(Fn<void()> callback) const;
@@ -302,6 +301,8 @@ private:
void hiderLayer(base::unique_qptr<Window::HistoryHider> h);
void clearHider(not_null<Window::HistoryHider*> instance);
void closeBothPlayers();
[[nodiscard]] auto floatPlayerDelegate()
-> not_null<Media::Player::FloatDelegate*>;
not_null<Ui::RpWidget*> floatPlayerWidget() override;