revised functions related to issue #92

This commit is contained in:
joten 2016-05-15 15:02:00 +02:00
parent d445c61fa3
commit c5412d5394
2 changed files with 5 additions and 6 deletions

BIN
bugn.exe

Binary file not shown.

View file

@ -164,8 +164,9 @@ Config_convertSystemColor(systemColor)
Config_edit() {
Global Config_filePath
If FileExist(Config_filePath)
Run, edit %Config_filePath%
If Not FileExist(Config_filePath)
Config_UI_saveSession()
Run, edit %Config_filePath%
}
Config_getSystemSettings() {
@ -396,12 +397,10 @@ Config_saveSession(original, target)
;; The FileMove below is an all-or-nothing replacement of the file.
;; We don't want to leave this half-finished.
FileAppend, %text%, %tmpfilename%
If ErrorLevel
{
If ErrorLevel And Not (original = Config_filePath And target = Config_filePath And Not FileExist(original)) {
If FileExist(tmpfilename)
FileDelete, %tmpfilename%
}
Else
} Else
FileMove, %tmpfilename%, %target%, 1
}