Skip to content

Commit

Permalink
Add alert message on add to queue (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
jholdnak authored Jul 4, 2024
1 parent 1b1f0c4 commit f876f6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions psst-gui/src/ui/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ use druid::{
use itertools::Itertools;

use crate::{
cmd,
cmd::{self, ADD_TO_QUEUE},
controller::PlaybackController,
data::{
AppState, AudioAnalysis, Episode, NowPlaying, Playable, PlayableMatcher, Playback,
PlaybackOrigin, PlaybackState, QueueBehavior, ShowLink, Track,
},
widget::{icons, icons::SvgIcon, Empty, Maybe, MyWidgetExt, RemoteImage},
widget::{icons::{self, SvgIcon}, Empty, Maybe, MyWidgetExt, RemoteImage},
};

use super::{episode, library, theme, track, utils};
Expand All @@ -34,6 +34,9 @@ pub fn panel_widget() -> impl Widget<AppState> {
.with_child(BarLayout::new(item_info, controls))
.lens(AppState::playback)
.controller(PlaybackController::new())
.on_command(ADD_TO_QUEUE, |_, _, data| {
data.info_alert("Track added to queue.")
})
}

fn playing_item_widget() -> impl Widget<NowPlaying> {
Expand Down

0 comments on commit f876f6d

Please sign in to comment.