Skip to content

Commit

Permalink
Don't insta-close context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
bgribble committed Mar 8, 2025
1 parent a18838b commit 704d9d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mfp/gui/imgui/app_window/canvas_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def render_tile(app_window, patch):
app_window.selected_patch = patch
app_window.selected_layer = patch.selected_layer

if app_window.selected_window == "canvas":
if app_window.selected_window == "canvas" and not app_window.context_menu_open:
imgui.set_next_window_focus()

imgui.begin(
Expand Down Expand Up @@ -385,6 +385,7 @@ def render_tile(app_window, patch):
app_window.context_menu_open = False
imgui.pop_style_var(2)
nedit.resume()

# context menu
#################

Expand Down

0 comments on commit 704d9d8

Please sign in to comment.