fix cannot jump gate after you type url

This commit is contained in:
Nordup 2023-04-02 02:24:34 +03:00
parent a63f4dbe8f
commit 6ea7db44c4
3 changed files with 1 additions and 4 deletions

View file

@ -10,8 +10,6 @@ func _ready() -> void:
func load_gate(config_url: String) -> void: func load_gate(config_url: String) -> void:
config_url = Url.fix_gate_url(config_url)
Debug.logr("======== " + config_url + " ========") Debug.logr("======== " + config_url + " ========")
var config_path: String = await FileDownloader.download(config_url) var config_path: String = await FileDownloader.download(config_url)
c_gate = ConfigGate.new(config_path, config_url) c_gate = ConfigGate.new(config_path, config_url)

View file

@ -12,7 +12,7 @@ var current_gate: Gate
func open_gate_emit(url: String) -> void: func open_gate_emit(url: String) -> void:
current_gate_url = url current_gate_url = Url.fix_gate_url(url)
open_gate.emit() open_gate.emit()

View file

@ -26,7 +26,6 @@ func _on_go_pressed() -> void:
func open_gate() -> void: func open_gate() -> void:
if Url.is_valid(url): if Url.is_valid(url):
release_focus() release_focus()
print("open gate: %s" % url)
gate_events.open_gate_emit(url) gate_events.open_gate_emit(url)
else: else:
shake() shake()