mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-22 11:00:19 +00:00
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:
parent
37572e6c23
commit
0ddcce22e6
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue