Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
libksysguard
Commits
c383c372
Commit
c383c372
authored
Mar 01, 2021
by
Arjen Hiemstra
Browse files
Only emit readyChanged when we are in fact ready
Otherwise we are just notifying clients unnecessarily
parent
10d8d20a
Changes
1
Hide whitespace changes
Inline
Side-by-side
sensors/SensorDataModel.cpp
View file @
c383c372
...
...
@@ -408,7 +408,10 @@ void SensorDataModel::onMetaDataChanged(const QString &sensorId, const SensorInf
SensorDaemonInterface
::
instance
()
->
requestValue
(
sensorId
);
emit
sensorMetaDataChanged
();
Q_EMIT
readyChanged
();
if
(
isReady
())
{
Q_EMIT
readyChanged
();
}
}
void
SensorDataModel
::
onValueChanged
(
const
QString
&
sensorId
,
const
QVariant
&
value
)
...
...
Arjen Hiemstra
@ahiemstra
mentioned in commit
c5057b10
·
Mar 02, 2021
mentioned in commit
c5057b10
mentioned in commit c5057b10b92a17f395601d462d058642bda8bbff
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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