Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
a86c06cf
Commit
a86c06cf
authored
Mar 17, 2022
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
libmobileshell/savedquicksettings.cpp
View file @
a86c06cf
...
...
@@ -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
();
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment