aboutsummaryrefslogtreecommitdiff
path: root/src/app/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/mod.rs')
-rw-r--r--src/app/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs
index bc732f57..d9f666ed 100644
--- a/src/app/mod.rs
+++ b/src/app/mod.rs
@@ -291,6 +291,7 @@ impl App {
.filter(|notes| notes.preview)
.map(|notes| notes.version.clone());
let latest_release_notes_available = latest_release_notes.is_some();
+ let update_install_command = crate::update::update_install_command().to_string();
let mode = if config.should_show_onboarding() {
state::Mode::Onboarding
@@ -355,6 +356,7 @@ impl App {
selection: None,
context_menu: None,
update_available,
+ update_install_command,
latest_release_notes_available,
update_dismissed: false,
config_diagnostic,
@@ -1883,6 +1885,7 @@ mod tests {
app.event_tx
.try_send(AppEvent::UpdateReady {
version: format!("9.9.{i}"),
+ install_command: "herdr update".into(),
})
.unwrap();
}