Skip to content

Commit

Permalink
Fix addition of new base file
Browse files Browse the repository at this point in the history
  • Loading branch information
TAC109 committed May 16, 2024
1 parent 9817e61 commit 2cadde3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Ahk2Exe.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2cadde3

Please sign in to comment.