Added a check to make sure the BugbotServerAPI object used by the editor is valid before trying to open the bug's URL.

This commit is contained in:
Jamie Greunbaum 2024-06-09 15:35:11 -04:00
parent 7b5325c1be
commit e38a4e190e

View File

@ -160,7 +160,8 @@ func __on_marker_selection_changed() -> void:
bug_popup.popup_exclusive_centered(selected_marker) bug_popup.popup_exclusive_centered(selected_marker)
selection.remove_node(selected_marker) selection.remove_node(selected_marker)
func __marker_selection_open_bug_page(bug_data:BugbotBugData, selected_marker:Node): func __marker_selection_open_bug_page(bug_data:BugbotBugData, selected_marker:Node):
OS.shell_open(__editor_server_api._get_bug_url(bug_data)) if __editor_server_api:
OS.shell_open(__editor_server_api._get_bug_url(bug_data))
func __on_editor_tab_switched(new_scene:Node) -> void: func __on_editor_tab_switched(new_scene:Node) -> void: