Skip to content

Commit

Permalink
v2.10.1
Browse files Browse the repository at this point in the history
bugfix: setting bAddSuspendButtons=0 no longer results in the wrong buttons being disabled.
  • Loading branch information
Gewerd-Strauss committed Jan 4, 2022
1 parent 36514c4 commit c8b13f9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ScriptLauncher.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@
SetTitleMatchMode, 2
global script := { base : script
,name : regexreplace(A_ScriptName, "\.\w+")
,version : "2.9.1"
,version : "2.10.1"
,author : "Gewerd Strauss"
,authorlink : ""
,email : "[email protected]"
Expand Down Expand Up @@ -935,7 +935,7 @@
}
}
}
ButtonM_Ind:=Ind*3+1
ButtonM_Ind:=Ind*(IniObj["Script Behaviour Settings"].bAddSuspendButtons?3:2)+1
ButtonE_Ind:=Ind*3+2
ButtonD_Ind:=Ind*3+3
ButtonR_Ind:=Ind*3+4
Expand Down Expand Up @@ -1195,7 +1195,8 @@
{
guicontrol, disable, Button%KillBtnNumber%
SusBtnNumber:=KillBtnNumber+1
guicontrol, disable, Button%SusBtnNumber%
if IniObj["Script Behaviour Settings"].bAddSuspendButtons
guicontrol, disable, Button%SusBtnNumber%
}
}
if (Source="lCheckButtons")
Expand Down Expand Up @@ -1233,7 +1234,7 @@
}
}
Gui, 1: Show, w%SceneWidth% h%YPos% x%PositionXGui% y%PositionYGui%, Main Window
guicontrol, focus, Button%ButtonM_Ind%
guicontrol, focus, Button%ButtonM_Ind%
Settimer, lCheckButtons,100
WinGetPos X, Y, Width, Height, Main Window
MaxY:=SizeBottom - Height
Expand Down

0 comments on commit c8b13f9

Please sign in to comment.