fix: remove unnecessary allow_auto_update default value (#7697)

* fix: remove unnecessary allow_auto_update default value

* fix: normalize missing profile auto-update state

---------

Co-authored-by: wonfen <eiwonfen@gmail.com>
This commit is contained in:
StarsSail
2026-08-09 06:29:01 +00:00
committed by GitHub
co-authored by wonfen
parent 117bac8110
commit df7e52f25c
3 changed files with 12 additions and 8 deletions
+6
View File
@@ -138,6 +138,12 @@ impl IProfiles {
if item.uid.is_none() {
item.uid = Some(help::get_uid("d").into());
}
if item.itype.as_deref() == Some("remote") {
item.option
.get_or_insert_with(PrfOption::default)
.allow_auto_update
.get_or_insert(true);
}
}
profiles
}