Skip to content

Commit 263b7ac

Browse files
committed
mintUpdate.py: Fix hidden state tracking.
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
1 parent 8f7d1ef commit 263b7ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

usr/lib/linuxmint/mintUpdate/mintUpdate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def __init__(self):
182182
self.refreshing_flatpak = False
183183
self.refreshing_cinnamon = False
184184
self.auto_refresh_is_alive = False
185-
self.hidden = False # whether the window is hidden or not
185+
self.hidden = True # whether the window is hidden or not
186186
self.packages = [] # packages selected for update
187187
self.flatpaks = [] # flatpaks selected for update
188188
self.spices = [] # spices selected for update
@@ -507,7 +507,7 @@ def __init__(self):
507507
if len(sys.argv) > 1:
508508
showWindow = sys.argv[1]
509509
if showWindow == "show":
510-
self.ui_window.present_with_time(Gtk.get_current_event_time())
510+
self.show_window()
511511

512512
if CINNAMON_SUPPORT:
513513
self.cinnamon_updater = cinnamon.UpdateManager()

0 commit comments

Comments
 (0)