mirror of
https://github.com/mi57730/a2d.git
synced 2025-02-20 02:29:11 +00:00
Reset 'last menu', fixes DA menu restore after double-click. Fixes #139
Full-screen DAs/Previews assume they were launched from a menu and need to restore the menu bar and hilite state. If launched via double-click there is no hilite state to restore; handle this by setting the "last menu id" to an unused value so the HiliteMenu call is a no-op.
This commit is contained in:
parent
2905a5c930
commit
36439b1219
@ -3781,6 +3781,10 @@ ctl: .byte 0
|
|||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
|
|
||||||
.proc handle_content_click
|
.proc handle_content_click
|
||||||
|
;; Subsequent action was not triggered by a menu, so hilite is not
|
||||||
|
;; necessary. https://github.com/inexorabletash/a2d/issues/139
|
||||||
|
copy #$FF, menu_click_params::menu_id
|
||||||
|
|
||||||
bit active_window_view_by
|
bit active_window_view_by
|
||||||
bpl :+
|
bpl :+
|
||||||
jmp clear_selection
|
jmp clear_selection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user