Skip to content

Comments

Disables update on startup if autoupdate is off#1

Merged
ayagmar merged 1 commit intoayagmar:masterfrom
thevinter:patch-1
Feb 16, 2026
Merged

Disables update on startup if autoupdate is off#1
ayagmar merged 1 commit intoayagmar:masterfrom
thevinter:patch-1

Conversation

@thevinter
Copy link
Contributor

Currently, even when auto-update is disabled via /extensions auto-update never, the extension still runs package checks when pi is opened, greatly increasing loading time.

This happens because startAutoUpdateTimer() is called unconditionally during the session bootstrap.

This PR introduces a check against the auto-update config before starting the timer and only starts the timer if auto-update is explicitly enabled and has a valid interval.

P.S. I believe that this is not the best way to do this. Ideally there should be a setting/flag that disables the updates on start-up regardless of the auto-update setting. But my solution works fine for me so I won't pursue this further.

Added getAutoUpdateConfig to retrieve configuration and check if auto-update is enabled before starting the timer.
@ayagmar ayagmar self-requested a review February 16, 2026 01:03
@ayagmar
Copy link
Owner

ayagmar commented Feb 16, 2026

Thanks!

@ayagmar ayagmar merged commit 7bb1a97 into ayagmar:master Feb 16, 2026
1 check passed
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.

2 participants