parent
09654aef94
commit
5bcf08cea7
1 changed files with 2 additions and 18 deletions
20
src/main.rs
20
src/main.rs
|
|
@ -939,7 +939,6 @@ impl cosmic::Application for App {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Message::Library(message) => {
|
Message::Library(message) => {
|
||||||
let mut song = Song::default();
|
|
||||||
if let Some(library) = &mut self.library {
|
if let Some(library) = &mut self.library {
|
||||||
match library.update(message) {
|
match library.update(message) {
|
||||||
library::Action::OpenItem(None) => {
|
library::Action::OpenItem(None) => {
|
||||||
|
|
@ -959,22 +958,11 @@ impl cosmic::Application for App {
|
||||||
))) => {
|
))) => {
|
||||||
match kind {
|
match kind {
|
||||||
core::model::LibraryKind::Song => {
|
core::model::LibraryKind::Song => {
|
||||||
debug!(
|
let Some(lib_song) = library.get_song(index) else {
|
||||||
"Should get song at index: {:?}",
|
|
||||||
index
|
|
||||||
);
|
|
||||||
let Some(lib_song) =
|
|
||||||
library.get_song(index)
|
|
||||||
else {
|
|
||||||
return Task::none();
|
return Task::none();
|
||||||
};
|
};
|
||||||
self.editor_mode = Some(kind.into());
|
self.editor_mode = Some(kind.into());
|
||||||
song = lib_song.to_owned();
|
let song = lib_song.to_owned();
|
||||||
debug!(
|
|
||||||
"Should change songs to: {:?}",
|
|
||||||
song
|
|
||||||
);
|
|
||||||
|
|
||||||
return self.update(Message::SongEditor(
|
return self.update(Message::SongEditor(
|
||||||
song_editor::Message::ChangeSong(song),
|
song_editor::Message::ChangeSong(song),
|
||||||
));
|
));
|
||||||
|
|
@ -997,10 +985,6 @@ impl cosmic::Application for App {
|
||||||
debug!("hi");
|
debug!("hi");
|
||||||
self.library_dragged_item =
|
self.library_dragged_item =
|
||||||
Some(service_item);
|
Some(service_item);
|
||||||
// self.nav_model
|
|
||||||
// .insert()
|
|
||||||
// .text(service_item.title.clone())
|
|
||||||
// .data(service_item);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue