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) => {
|
||||
let mut song = Song::default();
|
||||
if let Some(library) = &mut self.library {
|
||||
match library.update(message) {
|
||||
library::Action::OpenItem(None) => {
|
||||
|
|
@ -959,22 +958,11 @@ impl cosmic::Application for App {
|
|||
))) => {
|
||||
match kind {
|
||||
core::model::LibraryKind::Song => {
|
||||
debug!(
|
||||
"Should get song at index: {:?}",
|
||||
index
|
||||
);
|
||||
let Some(lib_song) =
|
||||
library.get_song(index)
|
||||
else {
|
||||
let Some(lib_song) = library.get_song(index) else {
|
||||
return Task::none();
|
||||
};
|
||||
self.editor_mode = Some(kind.into());
|
||||
song = lib_song.to_owned();
|
||||
debug!(
|
||||
"Should change songs to: {:?}",
|
||||
song
|
||||
);
|
||||
|
||||
let song = lib_song.to_owned();
|
||||
return self.update(Message::SongEditor(
|
||||
song_editor::Message::ChangeSong(song),
|
||||
));
|
||||
|
|
@ -997,10 +985,6 @@ impl cosmic::Application for App {
|
|||
debug!("hi");
|
||||
self.library_dragged_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