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.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/app/api.rs b/src/app/api.rs
index d8224506..1442012b 100644
--- a/src/app/api.rs
+++ b/src/app/api.rs
@@ -152,10 +152,8 @@ impl App {
};
if let Some((version, install_command)) = update_ready {
- let _ = notify(
- &format!("v{version} available"),
- Some(&format!("detach, then run `{install_command}`")),
- );
+ let instruction = crate::update::update_install_instruction(&install_command);
+ let _ = notify(&format!("v{version} available"), Some(&instruction));
} else {
for update in &pane_updates {
let is_active_tab = self