From ffcc5bf2cabd03518ad4606914b011c286a8e0bc Mon Sep 17 00:00:00 2001 From: dam Date: Tue, 22 Feb 2022 00:01:25 +0000 Subject: Clear database selection after deleting selected entry. --- logic/database.gd | 1 + readme.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3