FIX: fix the vendor disappear issue after de-select the printers in newbie_guide

after the vendor profile is deselected
the system files are deleted from userdata dir
we should always load the other vendor's profiles from resource instead of userdata dir

Change-Id: I29220d30d203ea318092430c02cfa662caf0f388
This commit is contained in:
lane.wei 2022-10-14 18:51:59 +08:00 committed by Lane.Wei
parent 0aef20dd23
commit c2c7a6786d
2 changed files with 25 additions and 3 deletions

View file

@ -893,11 +893,13 @@ void PresetUpdater::priv::check_installed_vendor_profiles() const
bundles.push_back(vendor_name);
}
}
else //if vendor has no file, copy it from resource
else if (vendor_name == PresetBundle::BBL_BUNDLE) {//if vendor has no file, copy it from resource for BBL
bundles.push_back(vendor_name);
}
}
else //always update configs from resource to vendor
else if (vendor_name == PresetBundle::BBL_BUNDLE) {//always update configs from resource to vendor for BBL
bundles.push_back(vendor_name);
}
}
}