remove is_cached arg

This commit is contained in:
Nordup 2024-12-06 10:01:32 +04:00
parent a0fd6de158
commit fb587a6d30
6 changed files with 9 additions and 10 deletions

View file

@ -36,7 +36,7 @@ func hide_buttons() -> void:
gate = null
func update_info(_gate: Gate, _is_cached: bool) -> void:
func update_info(_gate: Gate) -> void:
gate = _gate
if bookmarks.gates.has(gate.url):
bookmarks.update(gate)

View file

@ -15,7 +15,7 @@ func _ready() -> void:
click_anywhere.hide()
func show_thumbnail(gate: Gate, _is_cached: bool) -> void:
func show_thumbnail(gate: Gate) -> void:
splash_screen.texture = FileTools.load_external_tex(gate.image)
vignette_blur.show()
vignette_blur.thumbnail_params()

View file

@ -18,7 +18,7 @@ func _ready() -> void:
clear_info()
func display_info(_gate: Gate, _is_cached: bool) -> void:
func display_info(_gate: Gate) -> void:
gate = _gate
title.text = "Unnamed" if gate.title.is_empty() else gate.title
description.text = "No description" if gate.description.is_empty() else gate.description

View file

@ -25,13 +25,13 @@ var first_zero_ticks: int
func _ready() -> void:
gate_events.gate_info_loaded.connect(func(_gate, _is_cached): on_gate_info_loaded())
gate_events.gate_info_loaded.connect(on_gate_info_loaded)
gate_events.gate_entered.connect(on_gate_entered)
gate_events.gate_error.connect(on_gate_error)
set_progress("Connecting...", ProgressStatus.CONNECTING)
func on_gate_info_loaded() -> void:
func on_gate_info_loaded(_gate: Gate) -> void:
gate_events.download_progress.connect(show_progress)