mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
libmobileshell: Fix timer not being singleshot to improve performance
This commit is contained in:
parent
459af14e2e
commit
a86c06cfdf
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ SavedQuickSettings::SavedQuickSettings(QObject *parent)
|
||||||
{
|
{
|
||||||
// throttle model updates from config, to avoid performance issues with fast reloading
|
// throttle model updates from config, to avoid performance issues with fast reloading
|
||||||
m_updateTimer->setInterval(2000);
|
m_updateTimer->setInterval(2000);
|
||||||
|
m_updateTimer->setSingleShot(true);
|
||||||
connect(m_updateTimer, &QTimer::timeout, this, [this]() {
|
connect(m_updateTimer, &QTimer::timeout, this, [this]() {
|
||||||
refreshModel();
|
refreshModel();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue