Commit ace22790 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Fix showing update notification

Updates variables first before checking state() which depends on them

Differential Revision: https://phabricator.kde.org/D20161
parent 428f4171
......@@ -99,12 +99,13 @@ void DiscoverNotifier::updateStatusNotifier()
if (m_hasUpdates == hasUpdates && m_hasSecurityUpdates == hasSecurityUpdates )
return;
m_hasSecurityUpdates = hasSecurityUpdates;
m_hasUpdates = hasUpdates;
if (state() != NoUpdates) {
m_timer.start();
}
m_hasSecurityUpdates = hasSecurityUpdates;
m_hasUpdates = hasUpdates;
emit updatesChanged();
}
......
Markdown is supported
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