Skip to content

Fix startup lag by respecting auto-refresh settings (Fixes #1054)#1065

Open
adityasingh511 wants to merge 2 commits into
linuxmint:masterfrom
adityasingh511:master
Open

Fix startup lag by respecting auto-refresh settings (Fixes #1054)#1065
adityasingh511 wants to merge 2 commits into
linuxmint:masterfrom
adityasingh511:master

Conversation

@adityasingh511
Copy link
Copy Markdown

This PR addresses the startup lag reported in issue #1054.
Changes:
Logic Update:
Modified "APTCacheMonitor" in "mintUpdate.py" to check user-defined refresh intervals ("refresh-days", "refresh-hours", "refresh-minutes") before triggering an automatic cache refresh on startup.
UI Fix:
Implemented an "else" block to handle cases where auto-refresh is disabled. This ensures the "ui_stack" still renders the main view instead of a blank screen.
User Feedback:
Added a status update that informs the user that "Package lists are stale" with a warning icon, prompting them to manual refresh if needed.

Testing:
Verified on Linux Mint 22:

  1. When auto-refresh is ON, the app behaves as normal.
  2. When auto-refresh is OFF, the app launches instantly without network lag, and the UI correctly displays the stale status message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant