From 2cadde3947b25740a1c63955ad912308ec32a1e0 Mon Sep 17 00:00:00 2001 From: TAC109 <49378716+TAC109@users.noreply.github.com> Date: Thu, 16 May 2024 12:38:23 +1200 Subject: [PATCH] Fix addition of new base file --- Ahk2Exe.ahk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ahk2Exe.ahk b/Ahk2Exe.ahk index 8c7ed3f..44c6da5 100644 --- a/Ahk2Exe.ahk +++ b/Ahk2Exe.ahk @@ -324,12 +324,13 @@ AddBin(File, Force := 0) { if !(Force && File ~= "AutoHotkey\.exe$") Util_Error("Warning: Base file appears to be invalid.",0 ,"""" File """" , "Press 'OK' to accept anyway, or 'Cancel' to ignore.", 0) - Type := AHKType(File), BinFiles.Push(File), BinNames .= "|v" - . Type.Version " " Type.Summary " " RegExReplace(File, "^.+\\") + Type := AHKType(File), BinFiles.Push(File), BinNames .= (BinNames ? "|" :"") + . "v" Type.Version " " Type.Summary " " RegExReplace(File, "^.+\\") } GuiControl,, BinFileId, |%BinNames% GuiControl Choose, BinFileId, % BinFiles.MaxIndex() Util_Status("""" File """ added to 'Base file' list.") + gosub BinChanged } ParseCmdLine: