trying to tweak sqlx

This commit is contained in:
Chris Cochrun 2025-02-27 15:30:08 -06:00
parent 4fe68236ea
commit 804850505e
11 changed files with 129 additions and 219 deletions

View file

@ -79,6 +79,7 @@ impl Library {
Message::RemoveItem => Task::none(),
Message::OpenItem(item) => {
debug!(?item);
self.editing_item = item;
Task::none()
}
Message::HoverLibrary(library_kind) => {

View file

@ -26,7 +26,7 @@ use super::presenter::slide_view;
#[derive(Debug)]
pub struct SongEditor {
song: Option<Song>,
pub song: Option<Song>,
title: String,
fonts: combo_box::State<String>,
font_sizes: Vec<String>,
@ -35,7 +35,7 @@ pub struct SongEditor {
audio: PathBuf,
font_size: usize,
verse_order: String,
lyrics: text_editor::Content,
pub lyrics: text_editor::Content,
editing: bool,
background: Option<Background>,
video: Option<Video>,
@ -157,13 +157,7 @@ impl SongEditor {
}
Message::ChangeTitle(title) => {
self.title = title.clone();
if let Some(mut song) = self.song.clone() {
debug!(title);
song.title = title;
self.update(Message::UpdateSong(song))
} else {
Task::none()
}
Task::none()
}
Message::ChangeVerseOrder(verse_order) => {
self.verse_order = verse_order.clone();