diff --git a/src/ui/mod.rs b/src/ui/mod.rs index fa91cb6..5c276fa 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -1,4 +1,4 @@ -pub mod editor; pub mod library; pub mod presenter; +pub mod song_editor; pub mod video; diff --git a/src/ui/editor.rs b/src/ui/song_editor.rs similarity index 85% rename from src/ui/editor.rs rename to src/ui/song_editor.rs index 9b60104..797e3d8 100644 --- a/src/ui/editor.rs +++ b/src/ui/song_editor.rs @@ -4,7 +4,7 @@ use crate::core::songs::Song; #[derive(Debug, Clone)] pub struct SongEditor { - song: Song, + song: Option, } #[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 { match message { Message::ChangeSong(song) => todo!(),