mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-25 05:17:25 -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:
|
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)
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue