Skip to content

Commit f5c4cca

Browse files
committed
Use warning tray icon when reboot is required
1 parent 6f5c39c commit f5c4cca

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

usr/lib/linuxmint/mintUpdate/mintUpdate.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,12 @@ def show_updates_in_UI(self, num_visible, num_software, num_security, download_s
664664
else:
665665
self.logger.write("System is up to date")
666666
self.ui_stack.set_visible_child_name("success_page")
667-
self.set_status("", _("Your system is up to date"), "mintupdate-up-to-date-symbolic",
668-
not self.settings.get_boolean("hide-systray"))
667+
668+
if self.reboot_required:
669+
self.set_status("", _("Reboot required"), "mintupdate-warning-symbolic", True)
670+
else:
671+
self.set_status("", _("Your system is up to date"), "mintupdate-up-to-date-symbolic",
672+
not self.settings.get_boolean("hide-systray"))
669673

670674

671675
self.ui_notebook_details.set_current_page(0)

0 commit comments

Comments
 (0)