refresh rate lock for ChannelView
This commit is contained in:
@@ -79,10 +79,10 @@ ChannelView::ChannelView(BaseWidget *parent)
|
|||||||
this->updateTimer.setSingleShot(true);
|
this->updateTimer.setSingleShot(true);
|
||||||
connect(&this->updateTimer, &QTimer::timeout, this, [this] {
|
connect(&this->updateTimer, &QTimer::timeout, this, [this] {
|
||||||
if (this->updateQueued) {
|
if (this->updateQueued) {
|
||||||
this->update();
|
this->updateQueued = false;
|
||||||
|
this->repaint();
|
||||||
|
this->updateTimer.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
this->updateTimer.start();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,13 +99,14 @@ ChannelView::~ChannelView()
|
|||||||
|
|
||||||
void ChannelView::queueUpdate()
|
void ChannelView::queueUpdate()
|
||||||
{
|
{
|
||||||
// if (this->updateTimer.isActive()) {
|
if (this->updateTimer.isActive()) {
|
||||||
// this->updateQueued = true;
|
this->updateQueued = true;
|
||||||
// }
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
update();
|
this->repaint();
|
||||||
|
|
||||||
// this->updateTimer.start();
|
this->updateTimer.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelView::layoutMessages()
|
void ChannelView::layoutMessages()
|
||||||
|
|||||||
Reference in New Issue
Block a user