Commit a86c06cf authored by Devin Lin's avatar Devin Lin 🎨
Browse files

libmobileshell: Fix timer not being singleshot to improve performance

parent 459af14e
Pipeline #151483 passed with stages
in 1 minute and 26 seconds
......@@ -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();
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment