mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-05 22:22:44 +00:00
bugfix: Last active config was lost in Config Panel (fixes #1572)
When loading a config from the GUI, then starting emulation, if we re-opened the GUI the last active config was cleared out.
This commit is contained in:
parent
861a243439
commit
066aec48b9
@ -62,7 +62,6 @@ public:
|
||||
}
|
||||
|
||||
target_cfgfile_load(&changed_prefs, ConfigFilesList[i]->FullPath, CONFIG_TYPE_DEFAULT, 0);
|
||||
strncpy(last_active_config, ConfigFilesList[i]->Name, MAX_DPATH);
|
||||
refresh_all_panels();
|
||||
}
|
||||
else if (actionEvent.getSource() == cmdSave)
|
||||
@ -239,12 +238,6 @@ void InitPanelConfig(const struct config_category& category)
|
||||
button_x = category.panel->getWidth() - DISTANCE_BORDER - BUTTON_WIDTH;
|
||||
category.panel->add(cmdDelete, button_x, buttonY);
|
||||
|
||||
if (strlen(last_loaded_config) > 0)
|
||||
{
|
||||
strcpy(last_active_config, last_loaded_config);
|
||||
remove_file_extension(last_active_config);
|
||||
}
|
||||
|
||||
ensureVisible = -1;
|
||||
RefreshPanelConfig();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user