diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-18 20:06:43 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-18 20:06:43 +0300 |
| commit | 9f4f1630893f74697a2097ef11bf5bf512a37850 (patch) | |
| tree | 5648332c37526b2868db205b661f89ba6c125f0d /src/app/runtime.rs | |
| parent | d74ba8ca9e49d9d94a4e59a0ee0bdbd1128af76e (diff) | |
feat: add background update check toggles
refs #677
Diffstat (limited to 'src/app/runtime.rs')
| -rw-r--r-- | src/app/runtime.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/runtime.rs b/src/app/runtime.rs index 097f1ace..6ef9a786 100644 --- a/src/app/runtime.rs +++ b/src/app/runtime.rs @@ -3,7 +3,7 @@ use std::time::{Duration, Instant}; use crossterm::terminal; use super::{ - auto_updates_enabled, repeat_key_identity, App, Mode, ANIMATION_INTERVAL, + background_update_check_enabled, repeat_key_identity, App, Mode, ANIMATION_INTERVAL, AUTO_UPDATE_CHECK_INTERVAL, GIT_REMOTE_STATUS_REFRESH_INTERVAL, MIN_RENDER_INTERVAL, RESIZE_POLL_INTERVAL, SELECTION_AUTOSCROLL_INTERVAL, }; @@ -432,7 +432,7 @@ impl App { } pub(crate) fn run_auto_update_check(&mut self) { - if !auto_updates_enabled(self.no_session) { + if !background_update_check_enabled(self.no_session, self.update_version_check_enabled) { self.next_auto_update_check = None; return; } @@ -452,7 +452,7 @@ impl App { } pub(crate) fn run_agent_manifest_update_check(&mut self) { - if !auto_updates_enabled(self.no_session) { + if !background_update_check_enabled(self.no_session, self.update_manifest_check_enabled) { self.next_agent_manifest_update_check = None; return; } |
