Skip to content

Commit 6fad223

Browse files
authored
Fixed first-run issue
Fixed problem instantiating class object on first run
1 parent 54f30c7 commit 6fad223

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ScriptUp.ahk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ stateUpInt:=1000
1818
if(!fileExist(siniD)){
1919
firstRun:=1
2020
fileCreateDir,% siniD
21-
}else
22-
sList:=new fileList(sini)
21+
}
22+
sList:=new fileList(sini)
2323

2424
onExit,cleanup
2525
onMessage(0x46,"isMoving")
@@ -241,4 +241,4 @@ isMoving(wparam,lparam,msg,hwnd){
241241
global stateUpInt,ghwnd
242242
if(hwnd=ghwnd || hwnd=ghwnd2 || hwnd=ghwnd3 || hwnd=ghwnd4)
243243
setTimer,checkStates,% getKeyState("LButton","P")?"Off":stateUpInt
244-
}
244+
}

0 commit comments

Comments
 (0)