mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-08 18:45:13 +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
|
@ -146,7 +146,11 @@ impl<'a> AccountConfig {
|
||||||
downloads_dir,
|
downloads_dir,
|
||||||
sig,
|
sig,
|
||||||
default_page_size,
|
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: base_account
|
||||||
.notify_query
|
.notify_query
|
||||||
.as_ref()
|
.as_ref()
|
||||||
|
|
Loading…
Reference in a new issue