-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: setting bAddSuspendButtons=0 no longer results in the wrong buttons being disabled.
- Loading branch information
1 parent
36514c4
commit c8b13f9
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" | ||
|
@@ -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 | ||
|
@@ -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") | ||
|
@@ -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 | ||
|