fix: update channel-view when pausing (#5707)

This commit is contained in:
nerix
2024-11-10 19:51:45 +01:00
committed by GitHub
parent fc8d27b7e2
commit 6ceb987e7e
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -474,6 +474,8 @@ bool ChannelView::paused() const
void ChannelView::pause(PauseReason reason, std::optional<uint> msecs)
{
bool wasUnpaused = !this->paused();
if (msecs)
{
/// Msecs has a value
@@ -504,6 +506,11 @@ void ChannelView::pause(PauseReason reason, std::optional<uint> msecs)
}
this->updatePauses();
if (wasUnpaused)
{
this->update();
}
}
void ChannelView::unpause(PauseReason reason)