Add a configuration variable to display a notification at the be… (#345)
This commit is contained in:
committed by
GitHub
parent
738d70c91d
commit
2392124f71
@@ -70,6 +70,7 @@ pub struct ConfigFile {
|
||||
no_retry: Option<bool>,
|
||||
run_in_tmux: Option<bool>,
|
||||
cleanup: Option<bool>,
|
||||
notify_each_step: Option<bool>,
|
||||
accept_all_windows_updates: Option<bool>,
|
||||
only: Option<Vec<Step>>,
|
||||
}
|
||||
@@ -355,6 +356,12 @@ impl Config {
|
||||
self.config_file.accept_all_windows_updates.unwrap_or(true)
|
||||
}
|
||||
|
||||
/// Whether to send a desktop notification at the beginning of every step
|
||||
#[allow(dead_code)]
|
||||
pub fn notify_each_step(&self) -> bool {
|
||||
self.config_file.notify_each_step.unwrap_or(false)
|
||||
}
|
||||
|
||||
/// Extra yay arguments
|
||||
#[cfg(target_os = "linux")]
|
||||
pub fn yay_arguments(&self) -> &str {
|
||||
|
||||
Reference in New Issue
Block a user