Skip to content

Commit

Permalink
window: Don't show chord actions on empty chord
Browse files Browse the repository at this point in the history
  • Loading branch information
bragefuglseth committed Dec 23, 2023
1 parent 0d8df7b commit 254c013
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 254c013

Please sign in to comment.