mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
bug: fix default model selection ui (#977)
fix default model selection ui Co-authored-by: DevTekVE <devtekve@gmail.com>
This commit is contained in:
@@ -159,7 +159,7 @@ void ModelsPanel::handleCurrentModelLblBtnClicked(const QString &query) {
|
||||
// Sort bundles by index in descending order
|
||||
QStringList bundleNames;
|
||||
// Add "Default" as the first option
|
||||
bundleNames.append(tr("Use Default"));
|
||||
bundleNames.append(DEFAULT_MODEL);
|
||||
|
||||
auto indices = index_to_bundle.keys();
|
||||
std::sort(indices.begin(), indices.end(), std::greater<uint32_t>());
|
||||
@@ -191,7 +191,7 @@ void ModelsPanel::handleCurrentModelLblBtnClicked(const QString &query) {
|
||||
}
|
||||
|
||||
// Handle "Stock" selection differently
|
||||
if (selectedBundleName == tr("Use Default")) {
|
||||
if (selectedBundleName == DEFAULT_MODEL) {
|
||||
params.remove("ModelManager_ActiveBundle");
|
||||
currentModelLblBtn->setValue(tr("Default"));
|
||||
showResetParamsDialog();
|
||||
|
||||
Reference in New Issue
Block a user