Don't show desktop notification on error (if skip_notify = true) (#275)

This commit is contained in:
Guilherme Silva
2022-12-18 20:15:44 -03:00
committed by GitHub
parent eb51be0732
commit 867761be10

View File

@@ -237,7 +237,9 @@ impl Terminal {
self.term.set_title("Topgrade - Awaiting user");
}
self.notify_desktop(format!("{} failed", step_name), None);
if self.desktop_notification {
self.notify_desktop(format!("{} failed", step_name), None);
}
let prompt_inner = style(format!("{}Retry? (y)es/(N)o/(s)hell/(q)uit", self.prefix))
.yellow()