aboutsummaryrefslogtreecommitdiff
path: root/logic
diff options
context:
space:
mode:
Diffstat (limited to 'logic')
-rw-r--r--logic/database.gd3
-rw-r--r--logic/stage.gd1
2 files changed, 3 insertions, 1 deletions
diff --git a/logic/database.gd b/logic/database.gd
index 7b05932..e14dba4 100644
--- a/logic/database.gd
+++ b/logic/database.gd
@@ -18,7 +18,6 @@ func _init():
selected_idx = -1
staged_idx = -1
load_database()
- store_database() # @DAM Only for testing.
func _ready():
@@ -34,6 +33,8 @@ func _ready():
for it in db:
self.add_item(get_entry_view(it))
+
+ clear_selection()
func _notification(what: int):
diff --git a/logic/stage.gd b/logic/stage.gd
index 6f46489..66d6d6d 100644
--- a/logic/stage.gd
+++ b/logic/stage.gd
@@ -85,6 +85,7 @@ func get_option_sets(field: String):
if options.size() == 0:
options.append(OPTION_SETS_NOT_AVAILABLE)
+ options.sort()
return options