revised functions related to issue #92
This commit is contained in:
parent
d445c61fa3
commit
c5412d5394
2 changed files with 5 additions and 6 deletions
BIN
bugn.exe
BIN
bugn.exe
Binary file not shown.
|
@ -164,7 +164,8 @@ Config_convertSystemColor(systemColor)
|
|||
Config_edit() {
|
||||
Global Config_filePath
|
||||
|
||||
If FileExist(Config_filePath)
|
||||
If Not FileExist(Config_filePath)
|
||||
Config_UI_saveSession()
|
||||
Run, edit %Config_filePath%
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue