Skip to content

Commit 342d7f7

Browse files
authored
skip skip-notify warning on Win (#362)
1 parent 9c2d121 commit 342d7f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,13 @@ fn run() -> Result<()> {
8787
debug!("Self Update: {:?}", cfg!(feature = "self-update"));
8888

8989
#[cfg(target_os = "linux")]
90-
if config.display_preamble() && !config.skip_notify() {
91-
print_warning("Due to a design issue with notify-send it could be that topgrade hangs when it's finished.
90+
{
91+
if config.display_preamble() && !config.skip_notify() {
92+
print_warning("Due to a design issue with notify-send it could be that topgrade hangs when it's finished.
9293
If this is the case on your system add the --skip-notify flag to the topgrade command or set skip_notify = true in the config file.
9394
If you don't want this message to appear any longer set display_preamble = false in the config file.
9495
For more information about this issue see https://askubuntu.com/questions/110969/notify-send-ignores-timeout and https://github.com/topgrade-rs/topgrade/issues/288.");
96+
}
9597
}
9698

9799
if config.run_in_tmux() && env::var("TOPGRADE_INSIDE_TMUX").is_err() {

0 commit comments

Comments
 (0)