Skip to content

Commit

Permalink
fix: tray click handler fail in deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia committed Dec 2, 2023
1 parent ddc582b commit a137f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/RabbitTrayMenu.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ if TRAY_MENU_GRAYOUT {
}

ClickHandler(wParam, lParam, msg, hWnd) {
if not rime
if !rime || !IsSet(session_id) || !session_id
return
if (lParam == WM_LBUTTONUP) {
if lParam == WM_LBUTTONUP {
local old_ascii_mode := rime.get_option(session_id, "ascii_mode")
rime.set_option(session_id, "ascii_mode", !old_ascii_mode)
local new_ascii_mode := rime.get_option(session_id, "ascii_mode")
Expand Down

0 comments on commit a137f53

Please sign in to comment.