mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-19 04:15:14 -04:00
fix profile saving state set
This commit is contained in:
parent
cc55f61758
commit
c8832f99dd
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user