Skip to content

Commit

Permalink
fix: launcher not be shown
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Sep 1, 2024
1 parent 5411e05 commit 054d424
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lala_bar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ impl MultiApplication for LalaMusicBar {
fn remove_id(&mut self, id: iced::window::Id) {
if self.launcherid.is_some_and(|lid| lid == id) {
self.launcherid.take();
self.launcher.take();
}
if self.right_panel.is_some_and(|lid| lid == id) {
self.right_panel.take();
Expand Down Expand Up @@ -1122,11 +1123,7 @@ impl MultiApplication for LalaMusicBar {
Message::LauncherInfo(message) => {
if let Some(launcher) = self.launcher.as_mut() {
if let Some(id) = self.launcherid {
let cmd = launcher.update(message, id);
if launcher.should_delete {
self.launcher.take();
}
return cmd;
return launcher.update(message, id);
}
}
}
Expand Down

0 comments on commit 054d424

Please sign in to comment.