updatePauses only when needed

This commit is contained in:
kornes 2023-10-09 16:21:13 +02:00
parent fec45889a8
commit 461d083ba8

View file

@ -327,10 +327,10 @@ void ChannelView::pause(PauseReason reason, std::optional<uint> msecs)
void ChannelView::unpause(PauseReason reason) void ChannelView::unpause(PauseReason reason)
{ {
/// Remove the value from the map if (this->pauses_.erase(reason) > 0)
this->pauses_.erase(reason); {
this->updatePauses();
this->updatePauses(); }
} }
void ChannelView::updatePauses() void ChannelView::updatePauses()