Commit ab6b6894 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Properly compute the reboot state

parent 90940cf0
......@@ -110,7 +110,9 @@ void DiscoverNotifier::updateStatusNotifier()
DiscoverNotifier::State DiscoverNotifier::state() const
{
if (m_securityCount)
if (m_needsReboot)
return RebootRequired;
else if (m_securityCount)
return SecurityUpdates;
else if (m_count)
return NormalUpdates;
......
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