mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-05 05:50:04 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user