perf: prevent unnecessary layouts at leaveEvent (#4879)
This commit is contained in:
@@ -520,10 +520,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()
|
||||||
@@ -1761,8 +1761,6 @@ void ChannelView::leaveEvent(QEvent * /*event*/)
|
|||||||
this->tooltipWidget_->hide();
|
this->tooltipWidget_->hide();
|
||||||
|
|
||||||
this->unpause(PauseReason::Mouse);
|
this->unpause(PauseReason::Mouse);
|
||||||
|
|
||||||
this->queueLayout();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelView::mouseMoveEvent(QMouseEvent *event)
|
void ChannelView::mouseMoveEvent(QMouseEvent *event)
|
||||||
|
|||||||
Reference in New Issue
Block a user