Controllo aggiornamenti all'avvio spento di default: aKode contatta il Gitea solo con akode update
[update] check_on_startup passa da true a false (resta attivabile). Cosi' l'unico contatto di rete verso il repository avviene su comando esplicito. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -247,7 +247,9 @@ pub struct UpdateConfigToml {
|
|||||||
/// Gitea repository URL (`https://host/owner/repo`) whose latest release is checked.
|
/// Gitea repository URL (`https://host/owner/repo`) whose latest release is checked.
|
||||||
/// Defaults to the public aKode repository.
|
/// Defaults to the public aKode repository.
|
||||||
pub repo_url: Option<String>,
|
pub repo_url: Option<String>,
|
||||||
/// When `false`, the TUI never checks for a newer release on startup. Defaults to `true`.
|
/// When `true`, the TUI checks for a newer release in the background on startup (at most once
|
||||||
|
/// a day, never installs). Defaults to `false`: aKode only contacts the repository when you
|
||||||
|
/// run `akode update`.
|
||||||
pub check_on_startup: Option<bool>,
|
pub check_on_startup: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7282,7 +7282,7 @@
|
|||||||
"description": "`[update]`: where `akode update` looks for releases and whether the TUI checks on startup.",
|
"description": "`[update]`: where `akode update` looks for releases and whether the TUI checks on startup.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"check_on_startup": {
|
"check_on_startup": {
|
||||||
"description": "When `false`, the TUI never checks for a newer release on startup. Defaults to `true`.",
|
"description": "When `true`, the TUI checks for a newer release in the background on startup (at most once a day, never installs). Defaults to `false`: aKode only contacts the repository when you run `akode update`.",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"repo_url": {
|
"repo_url": {
|
||||||
|
|||||||
@@ -1258,7 +1258,7 @@ pub struct Config {
|
|||||||
pub update_repo_url: String,
|
pub update_repo_url: String,
|
||||||
|
|
||||||
/// Whether the TUI checks for a newer aKode release on startup
|
/// Whether the TUI checks for a newer aKode release on startup
|
||||||
/// (`[update] check_on_startup`, also off when `check_for_update_on_startup = false`).
|
/// (`[update] check_on_startup`, off by default; also off when `check_for_update_on_startup = false`).
|
||||||
pub update_check_on_startup: bool,
|
pub update_check_on_startup: bool,
|
||||||
|
|
||||||
/// When true, disables burst-paste detection for typed input entirely.
|
/// When true, disables burst-paste detection for typed input entirely.
|
||||||
@@ -4798,7 +4798,7 @@ impl Config {
|
|||||||
.update
|
.update
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|update| update.check_on_startup)
|
.and_then(|update| update.check_on_startup)
|
||||||
.unwrap_or(true),
|
.unwrap_or(false),
|
||||||
disable_paste_burst: cfg
|
disable_paste_burst: cfg
|
||||||
.tui
|
.tui
|
||||||
.as_ref()
|
.as_ref()
|
||||||
|
|||||||
Reference in New Issue
Block a user