aboutsummaryrefslogtreecommitdiff
path: root/src/app/api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/api.rs')
-rw-r--r--src/app/api.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/app/api.rs b/src/app/api.rs
index 50a56624..5f959365 100644
--- a/src/app/api.rs
+++ b/src/app/api.rs
@@ -58,8 +58,12 @@ impl App {
None
};
- let update_ready_version = if let AppEvent::UpdateReady { version } = &ev {
- Some(version.clone())
+ let update_ready = if let AppEvent::UpdateReady {
+ version,
+ install_command,
+ } = &ev
+ {
+ Some((version.clone(), install_command.clone()))
} else {
None
};
@@ -93,10 +97,10 @@ impl App {
_ => unreachable!("toast delivery was checked above"),
};
- if let Some(version) = update_ready_version {
+ if let Some((version, install_command)) = update_ready {
let _ = notify(
&format!("v{version} available"),
- Some("detach, then run `herdr update`"),
+ Some(&format!("detach, then run `{install_command}`")),
);
} else {
for update in &pane_updates {