mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 12:14:24 +02:00
Fix some errors preventing running of the main scene
This commit is contained in:
parent
8d56b5659a
commit
c115c34e6c
2 changed files with 4 additions and 3 deletions
|
@ -146,7 +146,7 @@ func _on_Terminal_key_pressed(data: String, event: InputEventKey) -> void:
|
|||
scene.queue_free()
|
||||
"Terminal":
|
||||
if OS.get_name() == "Windows":
|
||||
return OS.call_deferred(
|
||||
OS.call_deferred(
|
||||
"alert",
|
||||
(
|
||||
"Psuedoterminal node currently"
|
||||
|
@ -155,6 +155,7 @@ func _on_Terminal_key_pressed(data: String, event: InputEventKey) -> void:
|
|||
),
|
||||
"Terminal not Supported on Windows"
|
||||
)
|
||||
return
|
||||
var scene = item.scene.instantiate()
|
||||
var pty = scene if OS.has_feature("JavaScript") else scene.get_node("PTY")
|
||||
add_child(scene)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue