diff options
author | John Ankarström <john@ankarstrom.se> | 2021-04-11 15:27:37 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-04-11 15:27:37 +0200 |
commit | eba4484970148680a11159852f8568bb907c5b5f (patch) | |
tree | 08111d5175f089532013c3f36ae32769d4ce6cc6 | |
parent | b57cbcfdd3e9da08e277e8008faf824c5bf5aa3f (diff) | |
download | drm-eba4484970148680a11159852f8568bb907c5b5f.tar.gz |
Always show Restart button
-rw-r--r-- | drm.ahk | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -50,6 +50,7 @@ for k, res in Resolutions Menu, Tray, Add, %res%, ButtonResolution Menu, Tray, Add Menu, Tray, Add, &Configure..., ButtonConfigure +Menu, Tray, Add, &Restart, ButtonRestart Menu, Tray, Add, E&xit, ButtonExit AddCheckmark() OnMessage(0x404, "NotifyIcon") @@ -62,24 +63,6 @@ ButtonRestart: Reload return -; Handle tray opening - -NotifyIcon(wParam, lParam) -{ - if (lParam = 0x205) ; WM_RBUTTONUP - { - Menu, Tray, UseErrorLevel - Menu, Tray, Delete, &Restart - Menu, Tray, Delete, E&xit - Menu, Tray, UseErrorLevel, Off - if (GetKeyState("Shift") = 1) - Menu, Tray, Add, &Restart, ButtonRestart - else - Menu, Tray, Add, E&xit, ButtonExit - Menu, Tray, Show - return 1 - } -} ; Open configuration |