mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Fix pinning video from narrow mode.
This commit is contained in:
parent
f3e6f5e772
commit
1c42513e44
3 changed files with 5 additions and 5 deletions
|
@ -1020,11 +1020,10 @@ void Panel::setupMembers() {
|
|||
|
||||
_call->videoEndpointPinnedValue(
|
||||
) | rpl::start_with_next([=](const VideoEndpoint &pinned) {
|
||||
if (mode() == PanelMode::Wide) {
|
||||
_viewport->showLarge(pinned);
|
||||
} else if (pinned) {
|
||||
if (pinned && mode() != PanelMode::Wide) {
|
||||
enlargeVideo();
|
||||
}
|
||||
_viewport->showLarge(pinned);
|
||||
}, _callLifetime);
|
||||
}
|
||||
|
||||
|
|
|
@ -111,7 +111,6 @@ private:
|
|||
void refreshLeftButton();
|
||||
void refreshVideoButtons(
|
||||
std::optional<bool> overrideWideMode = std::nullopt);
|
||||
void refreshTilesGeometry();
|
||||
void toggleWideControls(bool shown);
|
||||
[[nodiscard]] bool videoButtonInNarrowMode() const;
|
||||
|
||||
|
|
|
@ -250,7 +250,9 @@ void Viewport::showLarge(const VideoEndpoint &endpoint) {
|
|||
const auto large = (i != end(_tiles)) ? i->get() : nullptr;
|
||||
if (_large != large) {
|
||||
_large = large;
|
||||
updateTilesGeometry();
|
||||
if (wide()) {
|
||||
updateTilesGeometry();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue