mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 17:17:31 -04:00
Show last opened gates first
This commit is contained in:
parent
87869f1f9c
commit
467d61f16b
2 changed files with 3 additions and 0 deletions
|
@ -26,7 +26,9 @@ func update(gate: Gate) -> void:
|
||||||
|
|
||||||
var replace = gates[gate.url]
|
var replace = gates[gate.url]
|
||||||
|
|
||||||
|
gates.erase(gate.url)
|
||||||
gates[gate.url] = gate
|
gates[gate.url] = gate
|
||||||
|
|
||||||
starred_gates.erase(replace)
|
starred_gates.erase(replace)
|
||||||
starred_gates.append(gate)
|
starred_gates.append(gate)
|
||||||
|
|
||||||
|
|
|
@ -14,3 +14,4 @@ func show_bookmark(gate: Gate, _featured: bool = false) -> void:
|
||||||
var bookmark: BookmarkUI = bookmark_scene.instantiate()
|
var bookmark: BookmarkUI = bookmark_scene.instantiate()
|
||||||
bookmark.fill(gate)
|
bookmark.fill(gate)
|
||||||
add_child(bookmark)
|
add_child(bookmark)
|
||||||
|
move_child(bookmark, 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue