FIX: [STUDIO-2625] fix backup_switch from < 01.06.00.00

Change-Id: Iedc2e26bfc346fd7e92b4c2862f2cef1ca9aa96f
This commit is contained in:
chunmao.guo 2023-04-04 19:21:48 +08:00 committed by Lane.Wei
parent 3e18543389
commit bdc500d90f

View file

@ -300,7 +300,7 @@ void AppConfig::set_defaults()
set_bool("sync_system_preset", true);
}
if (get("backup_switch").empty()) {
if (get("backup_switch").empty() || get("version") < "01.06.00.00") {
set_bool("backup_switch", true);
}