adding basis for song_editor
This commit is contained in:
parent
a36a1d59c6
commit
09b62afc91
|
@ -1,4 +1,4 @@
|
||||||
pub mod editor;
|
|
||||||
pub mod library;
|
pub mod library;
|
||||||
pub mod presenter;
|
pub mod presenter;
|
||||||
|
pub mod song_editor;
|
||||||
pub mod video;
|
pub mod video;
|
||||||
|
|
|
@ -4,7 +4,7 @@ use crate::core::songs::Song;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct SongEditor {
|
pub struct SongEditor {
|
||||||
song: Song,
|
song: Option<Song>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
@ -14,6 +14,9 @@ pub enum Message {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SongEditor {
|
impl SongEditor {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self { song: None }
|
||||||
|
}
|
||||||
pub fn update(&self, message: Message) -> Task<Message> {
|
pub fn update(&self, message: Message) -> Task<Message> {
|
||||||
match message {
|
match message {
|
||||||
Message::ChangeSong(song) => todo!(),
|
Message::ChangeSong(song) => todo!(),
|
Loading…
Reference in a new issue