aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-02-22 00:01:25 +0000
committerdam <dam@gudinoff>2022-02-22 00:01:25 +0000
commitffcc5bf2cabd03518ad4606914b011c286a8e0bc (patch)
tree1e06d8876cd4bdd52120511c8b2dab6cc05d5295
parent138bbde69f95ad62b8c6fb95d7b69f47fdc686de (diff)
downloadsurgery-log-ffcc5bf2cabd03518ad4606914b011c286a8e0bc.tar.zst
surgery-log-ffcc5bf2cabd03518ad4606914b011c286a8e0bc.zip
Clear database selection after deleting selected entry.
-rw-r--r--logic/database.gd1
-rw-r--r--readme.md2
2 files changed, 2 insertions, 1 deletions
diff --git a/logic/database.gd b/logic/database.gd
index e14dba4..2258f55 100644
--- a/logic/database.gd
+++ b/logic/database.gd
@@ -85,6 +85,7 @@ func delete_action_confirmed():
self.remove_item(selected_idx)
selected_idx = -1
store_database()
+ clear_selection()
func edit_action():
diff --git a/readme.md b/readme.md
index d16e0b9..d403fab 100644
--- a/readme.md
+++ b/readme.md
@@ -44,7 +44,7 @@ Surgery Log
```
- [x] Fix the show option sets buttons; they are drawn over the input fields and hide inserted text;
- [x] The stage control must be set to ignore the mouse, otherwise the touch-sensor conflicts with the built-in scroll;
-- [ ] On database, selecting an entry and removing it will leave the action buttons visible while no entry is selected;
+- [x] On database, selecting an entry and removing it will leave the action buttons visible while no entry is selected;
- [ ] Allow to parse option sets from database file;
- [ ] Database menu and action buttons are not nice; Improve appearance;
- [ ] check if import_option_sets, store_option_sets, store_database require the parameter save_changes; this requires changes on databse, stage and menu scripts;