Show last opened gates first

This commit is contained in:
Nordup 2024-08-26 23:58:37 +04:00
parent 87869f1f9c
commit 467d61f16b
2 changed files with 3 additions and 0 deletions

View file

@ -26,7 +26,9 @@ func update(gate: Gate) -> void:
var replace = gates[gate.url]
gates.erase(gate.url)
gates[gate.url] = gate
starred_gates.erase(replace)
starred_gates.append(gate)

View file

@ -14,3 +14,4 @@ func show_bookmark(gate: Gate, _featured: bool = false) -> void:
var bookmark: BookmarkUI = bookmark_scene.instantiate()
bookmark.fill(gate)
add_child(bookmark)
move_child(bookmark, 0)