Skip to content

Commit

Permalink
fix: de/serialize bookmarks everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
bragefuglseth committed Oct 22, 2023
1 parent f2774b8 commit ff0924c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ impl FretboardWindow {
fn bookmark_chord(&self) {
let star_toggle = self.imp().star_toggle.get();
let current_chord = self.imp().chord_diagram.imp().chord.get();
let current_name = self.imp().entry.imp().entry_buffer.borrow();
let current_name = self.imp().entry.serialized_buffer_text();

self.set_focus_widget(Some(&star_toggle));

Expand Down Expand Up @@ -450,7 +450,7 @@ impl FretboardWindow {
let imp = self.imp();

let chord = imp.chord_diagram.get().imp().chord.get();
let name = imp.entry.get().entry().text().to_string();
let name = imp.entry.serialized_buffer_text();

let query = Bookmark { name, chord };

Expand Down

0 comments on commit ff0924c

Please sign in to comment.