fix ignored config display_preamble = false (#340)

Bug was introduced in f1e4009. Fixes #337.
This commit is contained in:
arctic-penguin
2023-01-30 19:41:00 +01:00
committed by GitHub
parent 1051e4cf47
commit 4eae1fedf7

View File

@@ -86,7 +86,7 @@ fn run() -> Result<()> {
debug!("Binary path: {:?}", std::env::current_exe());
debug!("Self Update: {:?}", cfg!(feature = "self-update"));
if config.display_preamble() || !config.skip_notify() {
if config.display_preamble() && !config.skip_notify() {
print_warning("Due to a design issue with notify-send it could be that topgrade hangs when it's finished.
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.
If you don't want this message to appear any longer set display_preamble = false in the config file.