mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Fixed updating of emoji status from TopBar in Premium Settings for user.
Regression was introduced in 47b32898f5
.
This commit is contained in:
parent
62b624c390
commit
9c3173e4bb
2 changed files with 3 additions and 3 deletions
|
@ -580,7 +580,7 @@ void EmojiStatusTopBar::paint(QPainter &p) {
|
||||||
crl::now(),
|
crl::now(),
|
||||||
_paused);
|
_paused);
|
||||||
|
|
||||||
p.drawImage(_rect, frame.image);
|
p.drawImage(_rect.toRect(), frame.image);
|
||||||
if (!_paused) {
|
if (!_paused) {
|
||||||
_player->markFrameShown();
|
_player->markFrameShown();
|
||||||
}
|
}
|
||||||
|
@ -675,7 +675,7 @@ TopBarUser::TopBarUser(
|
||||||
if (document) {
|
if (document) {
|
||||||
_emojiStatus = std::make_unique<EmojiStatusTopBar>(
|
_emojiStatus = std::make_unique<EmojiStatusTopBar>(
|
||||||
document,
|
document,
|
||||||
[=](QRect r) { update(std::move(r)); },
|
[=](QRect r) { _content->update(std::move(r)); },
|
||||||
HistoryView::Sticker::EmojiSize());
|
HistoryView::Sticker::EmojiSize());
|
||||||
_imageStar = QImage();
|
_imageStar = QImage();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -24,7 +24,7 @@ MiniStars::MiniStars(Fn<void(const QRect &r)> updateCallback, bool opaque)
|
||||||
Interval{ 180 + 15, 50 },
|
Interval{ 180 + 15, 50 },
|
||||||
Interval{ -15 - 50, 50 },
|
Interval{ -15 - 50, 50 },
|
||||||
})
|
})
|
||||||
, _lifeLength({ 150, 200 })
|
, _lifeLength({ 150 / 5, 200 / 5 })
|
||||||
, _deathTime({ 1500, 2000 })
|
, _deathTime({ 1500, 2000 })
|
||||||
, _size({ 5, 10 })
|
, _size({ 5, 10 })
|
||||||
, _alpha({ opaque ? 100 : 40, opaque ? 100 : 60 })
|
, _alpha({ opaque ? 100 : 40, opaque ? 100 : 60 })
|
||||||
|
|
Loading…
Add table
Reference in a new issue