Skip to content

Commit

Permalink
rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xou816 committed Mar 18, 2023
1 parent 5adabd4 commit 4bb5390
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/app/components/now_playing/now_playing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl NowPlayingWidget {
widget.devices.remove(&child);
}
for device in devices {
let check = gtk::CheckButtonBuilder::new()
let check = gtk::CheckButton::builder()
.action_name(&format!("{}.{}", ACTIONS, CONNECT_ACTION))
.action_target(&Some(&device.id).to_variant())
.group(&*widget.this_device_button)
Expand Down Expand Up @@ -198,7 +198,7 @@ impl NowPlaying {
let playlist = Box::new(Playlist::new(
widget.song_list_widget().clone(),
model.clone(),
worker
worker,
));

let headerbar = Box::new(HeaderBarComponent::new(
Expand Down
1 change: 0 additions & 1 deletion src/app/components/now_playing/now_playing_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use crate::app::models::ConnectDevice;
use crate::app::models::SongDescription;
use crate::app::models::SongListModel;
use crate::app::state::Device;
use crate::app::state::PlaylistChange;
use crate::app::state::SelectionContext;
use crate::app::state::{PlaybackAction, PlaybackState, SelectionAction, SelectionState};
use crate::app::{ActionDispatcher, AppAction, AppEvent, AppModel};
Expand Down
1 change: 0 additions & 1 deletion src/app/components/player_notifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use librespot::core::spotify_id::SpotifyId;

use crate::api::{SpotifyApiClient, SpotifyConnectPlayer};
use crate::app::components::EventListener;
use crate::app::models::ConnectDevice;
use crate::app::state::{Device, LoginAction, LoginEvent, LoginStartedEvent, PlaybackEvent};
use crate::app::{ActionDispatcher, AppAction, AppEvent};
use crate::player::Command;
Expand Down
9 changes: 0 additions & 9 deletions src/app/state/playback_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,6 @@ impl From<PlaybackAction> for AppAction {
}
}

#[derive(Clone, Debug)]
pub enum PlaylistChange {
Reset,
InsertedAt(usize, usize),
AppendedAt(usize),
MovedUp(usize),
MovedDown(usize),
}

#[derive(Clone, Debug)]
pub enum Device {
Local,
Expand Down

0 comments on commit 4bb5390

Please sign in to comment.