From a86c06cfdfb77a8ec731ec20e57ccafe6502f2f3 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Thu, 17 Mar 2022 16:15:38 -0400 Subject: [PATCH] libmobileshell: Fix timer not being singleshot to improve performance --- libmobileshell/savedquicksettings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libmobileshell/savedquicksettings.cpp b/libmobileshell/savedquicksettings.cpp index 6492995e..d09dff7a 100644 --- a/libmobileshell/savedquicksettings.cpp +++ b/libmobileshell/savedquicksettings.cpp @@ -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(); });