mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
perf: prevent unnecessary layouts at leaveEvent (#4879)
This commit is contained in:
parent
a737d4b755
commit
1e2c943ae9
|
@ -520,10 +520,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()
|
||||
|
@ -1761,8 +1761,6 @@ void ChannelView::leaveEvent(QEvent * /*event*/)
|
|||
this->tooltipWidget_->hide();
|
||||
|
||||
this->unpause(PauseReason::Mouse);
|
||||
|
||||
this->queueLayout();
|
||||
}
|
||||
|
||||
void ChannelView::mouseMoveEvent(QMouseEvent *event)
|
||||
|
|
Loading…
Reference in a new issue