From 254c013a536ecfccc1b44a2ef0f304f2173a8438 Mon Sep 17 00:00:00 2001 From: Brage Fuglseth Date: Sat, 23 Dec 2023 13:29:10 +0100 Subject: [PATCH] window: Don't show chord actions on empty chord --- src/window.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/window.rs b/src/window.rs index 86f5b93..a950e91 100644 --- a/src/window.rs +++ b/src/window.rs @@ -397,7 +397,10 @@ impl FretboardWindow { imp.chord_diagram.set_chord(bookmark.chord); imp.entry.overwrite_text(&bookmark.name); - imp.feedback_stack.set_visible_child_name("chord-actions"); + + if bookmark.chord != EMPTY_CHORD { + imp.feedback_stack.set_visible_child_name("chord-actions"); + } } fn save_bookmarks(&self) {