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:
parent
7b5325c1be
commit
e38a4e190e
@ -160,7 +160,8 @@ func __on_marker_selection_changed() -> void:
|
||||
bug_popup.popup_exclusive_centered(selected_marker)
|
||||
selection.remove_node(selected_marker)
|
||||
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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user