Skip to content

Commit

Permalink
mintUpdate.py: Fix hidden state tracking.
Browse files Browse the repository at this point in the history
Initializing self.hidden to False was causing periodic refreshes
to be skipped, if the user never opened the window.

Fixes #923.
ref: https://forums.linuxmint.com/viewtopic.php?p=2590027#p2590027
  • Loading branch information
mtwebster committed Feb 11, 2025
1 parent 8f7d1ef commit 263b7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/lib/linuxmint/mintUpdate/mintUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __init__(self):
self.refreshing_flatpak = False
self.refreshing_cinnamon = False
self.auto_refresh_is_alive = False
self.hidden = False # whether the window is hidden or not
self.hidden = True # whether the window is hidden or not
self.packages = [] # packages selected for update
self.flatpaks = [] # flatpaks selected for update
self.spices = [] # spices selected for update
Expand Down Expand Up @@ -507,7 +507,7 @@ def __init__(self):
if len(sys.argv) > 1:
showWindow = sys.argv[1]
if showWindow == "show":
self.ui_window.present_with_time(Gtk.get_current_event_time())
self.show_window()

if CINNAMON_SUPPORT:
self.cinnamon_updater = cinnamon.UpdateManager()
Expand Down

0 comments on commit 263b7ac

Please sign in to comment.