Write to the config file only at exit
This commit is contained in:
parent
994a377a26
commit
13898d9de0
|
@ -23,9 +23,8 @@ object Configuration {
|
|||
if (!exists()) {
|
||||
createNewFile()
|
||||
setWritable(true)
|
||||
writeText(base)
|
||||
setReadable(true)
|
||||
}; result = try {
|
||||
} else result = try {
|
||||
ConfigFactory.parseFile(file)
|
||||
} catch (e: ConfigException) {
|
||||
Snowy.logs.warn("Could not parse the snowy configuration file, the default configuration will be used instead."); baseConf
|
||||
|
|
Loading…
Reference in New Issue