Skip to content

Commit

Permalink
fix: not use iced::event now
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Oct 21, 2024
1 parent a4d974e commit 3c2ca51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lala_bar/src/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub struct Launcher {
pub should_delete: bool,
}

#[allow(unused)]
#[derive(Debug, Clone)]
pub enum LaunchMessage {
SearchEditChanged(String),
Expand Down
5 changes: 3 additions & 2 deletions lala_bar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1316,8 +1316,9 @@ impl MultiApplication for LalaMusicBar {
iced::time::every(std::time::Duration::from_secs(10))
.map(|_| Message::RequestUpdateTime),
iced::time::every(std::time::Duration::from_secs(5)).map(|_| Message::UpdateBalance),
iced::event::listen()
.map(|event| Message::LauncherInfo(LaunchMessage::IcedEvent(event))),
// FIXME: this one will make event be too many
//iced::event::listen()
// .map(|event| Message::LauncherInfo(LaunchMessage::IcedEvent(event))),
iced::Subscription::run(|| {
iced::stream::channel(100, |mut output| async move {
use iced::futures::sink::SinkExt;
Expand Down

0 comments on commit 3c2ca51

Please sign in to comment.