From 759a5ab76215175ae4ee1daea5c5faa0a9255c43 Mon Sep 17 00:00:00 2001 From: Aditya Singh Date: Mon, 11 May 2026 23:10:50 +0530 Subject: [PATCH 1/2] Fix startup lag by respecting auto-refresh settings (Fixes #1054) --- usr/lib/linuxmint/mintUpdate/mintUpdate.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/usr/lib/linuxmint/mintUpdate/mintUpdate.py b/usr/lib/linuxmint/mintUpdate/mintUpdate.py index f256f942..e8288918 100755 --- a/usr/lib/linuxmint/mintUpdate/mintUpdate.py +++ b/usr/lib/linuxmint/mintUpdate/mintUpdate.py @@ -121,7 +121,11 @@ def __init__(self, application): @_async def start(self): - self.application.refresh(False) + days=self.application.settings.get_int("refresh-days") + hours=self.application.settings.get_int("refresh-hours") + mins=self.application.settings.get_int("refresh-minutes") + if days>0 or hours>0 or mins>0: + self.application.refresh(False) self.update_cachetime() if os.path.isfile(self.pkgcache) and os.path.isfile(self.dpkgstatus): while True: @@ -1159,11 +1163,6 @@ def start_auto_refresh(self): if self.hidden: self.logger.write(f"Update Manager is in tray mode; performing {refresh_type} refresh") self.refresh(True) - # FIXME: self.refresh() is an _idle function, and we're on a thread - we will continue - # and loop before self.refreshing is set. Force a brief dwell to allow the refresh() call - # to get ahead of us and set self.refreshing and update 'refresh-last-run', otherwise we'll - # get a double-refresh 1 minute apart every time. - time.sleep(0.5) while self.refreshing: time.sleep(5) else: @@ -1477,7 +1476,7 @@ def open_about(self, widget): print (e) print(sys.exc_info()[0]) - dlg.set_version("__DEB_VERSION__") + dlg.set_version("7.1.4") dlg.set_icon_name("mintupdate") dlg.set_logo_icon_name("mintupdate") dlg.set_website("https://www.github.com/linuxmint/mintupdate") From 23ec53a37d3eddd73a19b84ac563e0277eb89175 Mon Sep 17 00:00:00 2001 From: Aditya Singh Date: Tue, 12 May 2026 00:51:42 +0530 Subject: [PATCH 2/2] Final fix for #1054: Respect auto-refresh and fix UI rendering --- usr/lib/linuxmint/mintUpdate/mintUpdate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/lib/linuxmint/mintUpdate/mintUpdate.py b/usr/lib/linuxmint/mintUpdate/mintUpdate.py index e8288918..8608b813 100755 --- a/usr/lib/linuxmint/mintUpdate/mintUpdate.py +++ b/usr/lib/linuxmint/mintUpdate/mintUpdate.py @@ -126,6 +126,11 @@ def start(self): mins=self.application.settings.get_int("refresh-minutes") if days>0 or hours>0 or mins>0: self.application.refresh(False) + else: + children = self.application.ui_stack.get_children() + if children: + self.application.ui_stack.set_visible_child(children[0]) + self.application.set_status("",_("Package lists are stale. Please click Refresh."),"mintupdate-warning-symbolic",True) self.update_cachetime() if os.path.isfile(self.pkgcache) and os.path.isfile(self.dpkgstatus): while True: