Merge branch 'outpoot:main' into main
This commit is contained in:
@@ -245,9 +245,9 @@ func execute_lua_command(code: String) -> void:
|
||||
var is_expression = is_likely_expression(code)
|
||||
if is_expression:
|
||||
var wrapped_code = "print(" + code + ")"
|
||||
lua_api.execute_lua_script(wrapped_code)
|
||||
lua_api.execute_lua_script(wrapped_code, "<console>")
|
||||
else:
|
||||
lua_api.execute_lua_script(code)
|
||||
lua_api.execute_lua_script(code, "<console>")
|
||||
return
|
||||
|
||||
add_log_entry("No Lua context available", "error", Time.get_ticks_msec() / 1000.0)
|
||||
|
||||
@@ -153,7 +153,7 @@ func _exit_tree():
|
||||
|
||||
if background_panel and is_instance_valid(background_panel):
|
||||
if background_panel.get_parent():
|
||||
background_panel.get_parent().remove_child(background_panel)
|
||||
background_panel.get_parent().remove_child.call_deferred(background_panel)
|
||||
background_panel.queue_free()
|
||||
|
||||
if dev_tools and is_instance_valid(dev_tools):
|
||||
|
||||
@@ -249,6 +249,8 @@ func _input(_event: InputEvent) -> void:
|
||||
if Input.is_action_just_pressed("FocusSearch"):
|
||||
main.search_bar.grab_focus()
|
||||
main.search_bar.select_all()
|
||||
if Input.is_action_just_pressed("ReloadPage"):
|
||||
main.reload_current_page()
|
||||
|
||||
func _on_new_tab_button_pressed() -> void:
|
||||
create_tab()
|
||||
|
||||
Reference in New Issue
Block a user