adding basis for song_editor

This commit is contained in:
Chris Cochrun 2025-02-20 06:55:36 -06:00
parent a36a1d59c6
commit 09b62afc91
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,4 @@
pub mod editor;
pub mod library;
pub mod presenter;
pub mod song_editor;
pub mod video;

View file

@ -4,7 +4,7 @@ use crate::core::songs::Song;
#[derive(Debug, Clone)]
pub struct SongEditor {
song: Song,
song: Option<Song>,
}
#[derive(Debug, Clone)]
@ -14,6 +14,9 @@ pub enum Message {
}
impl SongEditor {
pub fn new() -> Self {
Self { song: None }
}
pub fn update(&self, message: Message) -> Task<Message> {
match message {
Message::ChangeSong(song) => todo!(),