mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fix: rerender when unpausing (#5265)
This commit is contained in:
parent
84e641d589
commit
09b2c53383
|
@ -112,6 +112,7 @@
|
||||||
- Bugfix: Fixed split header tooltips showing in the wrong position on Windows. (#5230)
|
- Bugfix: Fixed split header tooltips showing in the wrong position on Windows. (#5230)
|
||||||
- Bugfix: Fixed split header tooltips appearing too tall. (#5232)
|
- Bugfix: Fixed split header tooltips appearing too tall. (#5232)
|
||||||
- Bugfix: Fixed past messages not showing in the search popup after adding a channel. (#5248)
|
- Bugfix: Fixed past messages not showing in the search popup after adding a channel. (#5248)
|
||||||
|
- Bugfix: Fixed pause indicator not disappearing in some cases. (#5265)
|
||||||
- Bugfix: Fixed the usercard popup not floating on tiling WMs on Linux when "Automatically close user popup when it loses focus" setting is enabled. (#3511)
|
- Bugfix: Fixed the usercard popup not floating on tiling WMs on Linux when "Automatically close user popup when it loses focus" setting is enabled. (#3511)
|
||||||
- Bugfix: Fixed moderator-only topics being subscribed to for non-moderators. (#5056)
|
- Bugfix: Fixed moderator-only topics being subscribed to for non-moderators. (#5056)
|
||||||
- Bugfix: Truncated IRC messages to be at most 512 bytes. (#5246)
|
- Bugfix: Truncated IRC messages to be at most 512 bytes. (#5246)
|
||||||
|
|
|
@ -536,6 +536,8 @@ void ChannelView::updatePauses()
|
||||||
this->pauseScrollMaximumOffset_ = 0;
|
this->pauseScrollMaximumOffset_ = 0;
|
||||||
|
|
||||||
this->queueLayout();
|
this->queueLayout();
|
||||||
|
// make sure we re-render
|
||||||
|
this->update();
|
||||||
}
|
}
|
||||||
else if (std::any_of(this->pauses_.begin(), this->pauses_.end(),
|
else if (std::any_of(this->pauses_.begin(), this->pauses_.end(),
|
||||||
[](auto &&value) {
|
[](auto &&value) {
|
||||||
|
@ -560,8 +562,9 @@ void ChannelView::updatePauses()
|
||||||
{
|
{
|
||||||
/// Start the timer
|
/// Start the timer
|
||||||
this->pauseEnd_ = pauseEnd;
|
this->pauseEnd_ = pauseEnd;
|
||||||
this->pauseTimer_.start(
|
auto duration =
|
||||||
duration_cast<milliseconds>(pauseEnd - SteadyClock::now()));
|
duration_cast<milliseconds>(pauseEnd - SteadyClock::now());
|
||||||
|
this->pauseTimer_.start(std::max(duration, 0ms));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue