mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +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([=] {
|
||||
chooseJoinAs();
|
||||
});
|
||||
updateControlsGeometry();
|
||||
}, widget()->lifetime());
|
||||
} else {
|
||||
_menuToggle.destroy();
|
||||
|
|
|
@ -223,10 +223,12 @@ UserpicButton::UserpicButton(
|
|||
, _peer(peer)
|
||||
, _cropTitle(CropTitle(_peer))
|
||||
, _role(role) {
|
||||
Expects(_role != Role::OpenProfile);
|
||||
Expects(_role != Role::OpenProfile && _role != Role::OpenPhoto);
|
||||
|
||||
_waiting = false;
|
||||
processPeerPhoto();
|
||||
prepare();
|
||||
setupPeerViewers();
|
||||
}
|
||||
|
||||
void UserpicButton::prepare() {
|
||||
|
@ -432,8 +434,10 @@ void UserpicButton::paintUserpicFrame(Painter &p, QPoint photoPosition) {
|
|||
if (_streamed
|
||||
&& _streamed->player().ready()
|
||||
&& !_streamed->player().videoSize().isEmpty()) {
|
||||
const auto paused = _controller->isGifPausedAtLeastFor(
|
||||
Window::GifPauseReason::RoundPlaying);
|
||||
const auto paused = _controller
|
||||
? _controller->isGifPausedAtLeastFor(
|
||||
Window::GifPauseReason::RoundPlaying)
|
||||
: false;
|
||||
auto request = Media::Streaming::FrameRequest();
|
||||
auto size = QSize{ _st.photoSize, _st.photoSize };
|
||||
request.outer = size * cIntRetinaFactor();
|
||||
|
|
Loading…
Add table
Reference in a new issue