fix: rerender when unpausing (#5265)
This commit is contained in:
@@ -536,6 +536,8 @@ void ChannelView::updatePauses()
|
||||
this->pauseScrollMaximumOffset_ = 0;
|
||||
|
||||
this->queueLayout();
|
||||
// make sure we re-render
|
||||
this->update();
|
||||
}
|
||||
else if (std::any_of(this->pauses_.begin(), this->pauses_.end(),
|
||||
[](auto &&value) {
|
||||
@@ -560,8 +562,9 @@ void ChannelView::updatePauses()
|
||||
{
|
||||
/// Start the timer
|
||||
this->pauseEnd_ = pauseEnd;
|
||||
this->pauseTimer_.start(
|
||||
duration_cast<milliseconds>(pauseEnd - SteadyClock::now()));
|
||||
auto duration =
|
||||
duration_cast<milliseconds>(pauseEnd - SteadyClock::now());
|
||||
this->pauseTimer_.start(std::max(duration, 0ms));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user