Remember to clear the config before loading a new one.

This commit is contained in:
David Given
2022-09-11 21:03:47 +02:00
parent a7e36472d5
commit 5262929c16

View File

@@ -1051,6 +1051,8 @@ public:
auto formatSelection = formatChoice->GetSelection();
if (formatSelection == wxNOT_FOUND)
Error() << "no format selected";
config.Clear();
FlagGroup::parseConfigFile(_formatNames[formatChoice->GetSelection()], formats);
for (auto setting : split(_extraConfiguration, '\n'))