libmobileshell: Fix timer not being singleshot to improve performance

This commit is contained in:
Devin Lin 2022-03-17 16:15:38 -04:00
parent 459af14e2e
commit a86c06cfdf

View file

@ -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();
});