mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 11:17:26 -04:00
fix cannot jump gate after you type url
This commit is contained in:
parent
a63f4dbe8f
commit
6ea7db44c4
3 changed files with 1 additions and 4 deletions
|
@ -10,8 +10,6 @@ func _ready() -> void:
|
|||
|
||||
|
||||
func load_gate(config_url: String) -> void:
|
||||
config_url = Url.fix_gate_url(config_url)
|
||||
|
||||
Debug.logr("======== " + config_url + " ========")
|
||||
var config_path: String = await FileDownloader.download(config_url)
|
||||
c_gate = ConfigGate.new(config_path, config_url)
|
||||
|
|
|
@ -12,7 +12,7 @@ var current_gate: Gate
|
|||
|
||||
|
||||
func open_gate_emit(url: String) -> void:
|
||||
current_gate_url = url
|
||||
current_gate_url = Url.fix_gate_url(url)
|
||||
open_gate.emit()
|
||||
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ func _on_go_pressed() -> void:
|
|||
func open_gate() -> void:
|
||||
if Url.is_valid(url):
|
||||
release_focus()
|
||||
print("open gate: %s" % url)
|
||||
gate_events.open_gate_emit(url)
|
||||
else:
|
||||
shake()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue