Skip to content

Commit

Permalink
Fix right-click menu position for the debugger breakpoint tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
SaracenOne committed Oct 6, 2023
1 parent 0ca8542 commit 3700ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/debugger/script_editor_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ void ScriptEditorDebugger::_breakpoints_item_rmb_selected(const Vector2 &p_pos,
breakpoints_menu->add_icon_item(get_editor_theme_icon(SNAME("Remove")), TTR("Delete All Breakpoints in:") + " " + file, ACTION_DELETE_BREAKPOINTS_IN_FILE);
breakpoints_menu->add_icon_item(get_editor_theme_icon(SNAME("Remove")), TTR("Delete All Breakpoints"), ACTION_DELETE_ALL_BREAKPOINTS);

breakpoints_menu->set_position(breakpoints_tree->get_global_position() + p_pos);
breakpoints_menu->set_position(get_screen_position() + get_local_mouse_position());
breakpoints_menu->popup();
}

Expand Down

0 comments on commit 3700ce7

Please sign in to comment.