Ability to disable proxy config

Closes https://feedback.yaak.app/p/proxy-save-last-data
This commit is contained in:
Gregory Schier
2025-05-13 10:35:02 -07:00
parent 469d12fede
commit f5c3798df9
3 changed files with 71 additions and 22 deletions

View File

@@ -31,6 +31,9 @@ macro_rules! impl_model {
#[ts(export, export_to = "gen_models.ts")]
pub enum ProxySetting {
Enabled {
#[serde(default)]
// This was added after on so give it a default to be able to deserialize older values
disabled: bool,
http: String,
https: String,
auth: Option<ProxySettingAuth>,