let user override icon with a logo.ico in executable folder, otherwise use

builting icon
This commit is contained in:
x29a 2016-04-14 16:25:50 +02:00
parent cc9381b245
commit b26f3cf0bb

View file

@ -43,7 +43,7 @@ SetWinDelay, 10
Menu, Tray, Tip, %NAME% %VERSION% Menu, Tray, Tip, %NAME% %VERSION%
If A_IsCompiled If A_IsCompiled
Menu, Tray, Icon, %A_ScriptFullPath%, -159 Menu, Tray, Icon, %A_ScriptFullPath%, -159
Else If FileExist(A_ScriptDir . "\logo.ico") If FileExist(A_ScriptDir . "\logo.ico")
Menu, Tray, Icon, % A_ScriptDir . "\logo.ico" Menu, Tray, Icon, % A_ScriptDir . "\logo.ico"
Menu, Tray, NoStandard Menu, Tray, NoStandard
Menu, Tray, Add, Toggle bar, Main_toggleBar Menu, Tray, Add, Toggle bar, Main_toggleBar