mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
updatePauses only when needed
This commit is contained in:
parent
fec45889a8
commit
461d083ba8
|
@ -327,10 +327,10 @@ void ChannelView::pause(PauseReason reason, std::optional<uint> msecs)
|
|||
|
||||
void ChannelView::unpause(PauseReason reason)
|
||||
{
|
||||
/// Remove the value from the map
|
||||
this->pauses_.erase(reason);
|
||||
|
||||
this->updatePauses();
|
||||
if (this->pauses_.erase(reason) > 0)
|
||||
{
|
||||
this->updatePauses();
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelView::updatePauses()
|
||||
|
|
Loading…
Reference in a new issue