Disable winget by default
This commit is contained in:
@@ -160,6 +160,7 @@ pub struct Windows {
|
||||
accept_all_updates: Option<bool>,
|
||||
self_rename: Option<bool>,
|
||||
open_remotes_in_new_terminal: Option<bool>,
|
||||
enable_winget: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Default, Debug)]
|
||||
@@ -859,4 +860,13 @@ impl Config {
|
||||
|
||||
true
|
||||
}
|
||||
|
||||
pub fn enable_winget(&self) -> bool {
|
||||
return self
|
||||
.config_file
|
||||
.windows
|
||||
.as_ref()
|
||||
.and_then(|w| w.enable_winget)
|
||||
.unwrap_or(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user