Disable winget by default

This commit is contained in:
Roey Darwish Dror
2022-03-05 21:58:36 +02:00
parent 547df8d346
commit cea32020ce
2 changed files with 16 additions and 1 deletions

View File

@@ -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);
}
}