check the global config for notify-cmd (#362)

This brings it in line with how notify-query works and how the wiki
defines it to also be a global option.

Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>
This commit is contained in:
João Capucho 2022-04-15 20:50:05 +01:00 committed by GitHub
parent 37572e6c23
commit 0ddcce22e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,11 @@ impl<'a> AccountConfig {
downloads_dir,
sig,
default_page_size,
notify_cmd: base_account.notify_cmd.clone(),
notify_cmd: base_account
.notify_cmd
.as_ref()
.or_else(|| config.notify_cmd.as_ref())
.cloned(),
notify_query: base_account
.notify_query
.as_ref()