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