Fixed an issue with changing settings while editing a custom collection.

This commit is contained in:
Leon Styhre 2020-10-26 18:39:27 +01:00
parent 8ec7301f4b
commit f9ceeb0753

View file

@ -221,6 +221,9 @@ void GuiCollectionSystemsOptions::applySettings()
void GuiCollectionSystemsOptions::updateSettings(std::string newAutoSettings,
std::string newCustomSettings)
{
if (CollectionSystemManager::get()->isEditing())
CollectionSystemManager::get()->exitEditMode();
Settings::getInstance()->setString("CollectionSystemsAuto", newAutoSettings);
Settings::getInstance()->setString("CollectionSystemsCustom", newCustomSettings);
Settings::getInstance()->setBool("FavFirstCustom", sortFavFirstCustomSwitch->getState());