Skip to content

Rework refresh loop, clean up APT code in mintUpdate.py#1058

Draft
mtwebster wants to merge 8 commits intolinuxmint:masterfrom
mtwebster:refresh-loop
Draft

Rework refresh loop, clean up APT code in mintUpdate.py#1058
mtwebster wants to merge 8 commits intolinuxmint:masterfrom
mtwebster:refresh-loop

Conversation

@mtwebster
Copy link
Copy Markdown
Member

  • Get rid of the refresh-last-run setting, only track it in-process.
    It was always ignored at startup, so the initial refresh would
    run regardless. It's mainly useful to adjust intervals when the
    user has pressed refresh manually.
  • Run the auto-refresh timer on the main loop with a re-usable
    GSource timer.
  • Remove the auto-refresh toggle handler, just rely on the settings-
    change handler.
  • Collect the thread handles returned from the _async decorator
    during refresh() to guard refresh_updates()
  • Move APT refresh/fetch_update work into APTCheck, use that class
    the same way we use our flatpak and cinnamon updaters.

- Get rid of the refresh-last-run setting, only track it in-process.
  It was always ignored at startup, so the initial refresh would
  run regardless. It's mainly useful to adjust intervals when the
  user has pressed refresh manually.
- Run the auto-refresh timer on the main loop with a re-usable
  GSource timer.
- Remove the auto-refresh toggle handler, just rely on the settings-
  change handler.
- Collect the thread handles returned from the _async decorator
  during refresh() to guard refresh_updates()
- Move APT refresh/fetch_update work into APTCheck, use that class
  the same way we use our flatpak and cinnamon updaters.
@mtwebster mtwebster marked this pull request as draft April 29, 2026 13:41
- Clicking the checkbox amongst a selection will toggle all items.
- Right-clicking within the selection will offer to ignore all
  selected updates.
- The Packages notebook tab will show all packages included in the
  selection and their total size.
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