bugfix: Config description was not set when using WHDLoad (fixes #1580)

This commit is contained in:
Dimitris Panokostas 2025-01-09 15:56:24 +01:00
parent 2eca3a4ddb
commit 44c6ce7b0a
No known key found for this signature in database
GPG Key ID: 330156A68E9E0929
2 changed files with 5 additions and 2 deletions

View File

@ -277,6 +277,7 @@ void RefreshPanelConfig()
if (last_active_config[0])
{
txtName->setText(last_active_config);
txtDesc->setText(changed_prefs.description);
}
// Search current entry

View File

@ -445,8 +445,7 @@ public:
whdload_auto_prefs(&changed_prefs, whdload_prefs.whdload_filename.c_str());
AdjustDropDownControls();
if (!last_loaded_config[0])
set_last_active_config(whdload_prefs.whdload_filename.c_str());
set_last_active_config(whdload_prefs.whdload_filename.c_str());
}
cmdWhdloadSelect->requestFocus();
}
@ -474,6 +473,9 @@ public:
bIgnoreListChange = false;
}
whdload_auto_prefs(&changed_prefs, whdload_prefs.whdload_filename.c_str());
AdjustDropDownControls();
set_last_active_config(whdload_prefs.whdload_filename.c_str());
}
}
refresh_all_panels();