bookmarks fix changing position on icon update

This commit is contained in:
Nordup 2025-08-17 13:36:11 +07:00
parent e70ce51e01
commit 941e214499
3 changed files with 15 additions and 5 deletions

View file

@ -31,6 +31,18 @@ func make_first(url: String) -> void:
gates[url] = gate
func update_icon(url: String, icon: String) -> void:
if not gates.has(url): return
var gate = gates[url]
gate.icon = icon
var index = starred_gates.find(gate)
starred_gates[index].icon = icon
save_icon.emit(gate)
func update(gate: Gate) -> void:
if not gates.has(gate.url): return