mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix 'join as' userpic button display.
This commit is contained in:
parent
83ab670c50
commit
38dd5ab837
2 changed files with 8 additions and 3 deletions
|
@ -735,6 +735,7 @@ void Panel::subscribeToChanges(not_null<Data::GroupCall*> real) {
|
||||||
_joinAsToggle->setClickedCallback([=] {
|
_joinAsToggle->setClickedCallback([=] {
|
||||||
chooseJoinAs();
|
chooseJoinAs();
|
||||||
});
|
});
|
||||||
|
updateControlsGeometry();
|
||||||
}, widget()->lifetime());
|
}, widget()->lifetime());
|
||||||
} else {
|
} else {
|
||||||
_menuToggle.destroy();
|
_menuToggle.destroy();
|
||||||
|
|
|
@ -223,10 +223,12 @@ UserpicButton::UserpicButton(
|
||||||
, _peer(peer)
|
, _peer(peer)
|
||||||
, _cropTitle(CropTitle(_peer))
|
, _cropTitle(CropTitle(_peer))
|
||||||
, _role(role) {
|
, _role(role) {
|
||||||
Expects(_role != Role::OpenProfile);
|
Expects(_role != Role::OpenProfile && _role != Role::OpenPhoto);
|
||||||
|
|
||||||
_waiting = false;
|
_waiting = false;
|
||||||
|
processPeerPhoto();
|
||||||
prepare();
|
prepare();
|
||||||
|
setupPeerViewers();
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserpicButton::prepare() {
|
void UserpicButton::prepare() {
|
||||||
|
@ -432,8 +434,10 @@ void UserpicButton::paintUserpicFrame(Painter &p, QPoint photoPosition) {
|
||||||
if (_streamed
|
if (_streamed
|
||||||
&& _streamed->player().ready()
|
&& _streamed->player().ready()
|
||||||
&& !_streamed->player().videoSize().isEmpty()) {
|
&& !_streamed->player().videoSize().isEmpty()) {
|
||||||
const auto paused = _controller->isGifPausedAtLeastFor(
|
const auto paused = _controller
|
||||||
Window::GifPauseReason::RoundPlaying);
|
? _controller->isGifPausedAtLeastFor(
|
||||||
|
Window::GifPauseReason::RoundPlaying)
|
||||||
|
: false;
|
||||||
auto request = Media::Streaming::FrameRequest();
|
auto request = Media::Streaming::FrameRequest();
|
||||||
auto size = QSize{ _st.photoSize, _st.photoSize };
|
auto size = QSize{ _st.photoSize, _st.photoSize };
|
||||||
request.outer = size * cIntRetinaFactor();
|
request.outer = size * cIntRetinaFactor();
|
||||||
|
|
Loading…
Add table
Reference in a new issue