fix profile saving state set

This commit is contained in:
Bixilon 2021-12-01 23:38:58 +01:00
parent cc55f61758
commit c8832f99dd
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ object GlobalProfileManager {
val jsonString = Jackson.MAPPER.writerWithDefaultPrettyPrinter().writeValueAsString(data)
KUtil.safeSaveToFile(File(RunConfiguration.HOME_DIRECTORY + "config/selected_profiles.json"), jsonString)
selectedProfilesChanges = false
} catch (exception: Exception) {
exception.crash()
} finally {

View File

@ -69,6 +69,7 @@ interface ProfileManager<T : Profile> {
val profileFile = File(getPath(getName(profile)))
KUtil.safeSaveToFile(profileFile, jsonString)
profile.saved = true
} catch (exception: Exception) {
exception.crash()
} finally {