Skip to content

Commit e3bf670

Browse files
Update AltLauncher.au3
Fixed a logic issue with the GUI. The + button should now always show up.
1 parent cefa6f1 commit e3bf670

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AltLauncher.au3

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#AutoIt3Wrapper_Icon=Resources\AltLauncher.ico
33
#AutoIt3Wrapper_Outfile=Build\AltLauncher.exe
44
#AutoIt3Wrapper_UseX64=n
5-
#AutoIt3Wrapper_Res_Fileversion=0.2.0.5
5+
#AutoIt3Wrapper_Res_Fileversion=0.2.0.6
66
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=p
77
#AutoIt3Wrapper_Res_Language=1033
88
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
@@ -109,8 +109,8 @@ Func GuiInit()
109109
Local $iBtnW = (EnvGet("AltLauncher_ButtonWidth") <> "" ? Int(EnvGet("AltLauncher_ButtonWidth")) : 120)
110110
Local $iBtnH = (EnvGet("AltLauncher_ButtonHeight") <> "" ? Int(EnvGet("AltLauncher_ButtonHeight")) : 55)
111111
Local $iTotal = $aFolders[0]
112-
Local $iCols = Ceiling($iTotal / $iMaxPerCol)
113-
Local $iRows = _Min($iTotal, $iMaxPerCol)
112+
Local $iCols = Ceiling(($iTotal + 1) / $iMaxPerCol)
113+
Local $iRows = _Min(($iTotal + 1), $iMaxPerCol)
114114
Local $iWinW = ($iSpacing + $iBtnW + 1) * $iCols + $iSpacing + 2
115115
Local $iWinH = ($iSpacing + $iBtnH) * $iRows + $iSpacing + 30
116116
Local $hGUI = GUICreate("AltLauncher", $iWinW, $iWinH, -1, -1, $WS_SYSMENU)

0 commit comments

Comments
 (0)