mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 14:43: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
|
||||
m_updateTimer->setInterval(2000);
|
||||
m_updateTimer->setSingleShot(true);
|
||||
connect(m_updateTimer, &QTimer::timeout, this, [this]() {
|
||||
refreshModel();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue