use cfg of spotify object

TODO:
- apply this to other single config values that are passed directly, e.g. in the
  statusbar
- use a more appropriate object to hold `cfg`
This commit is contained in:
Henrik Friedrichsen
2020-08-18 22:46:38 +02:00
parent cc2b1ae183
commit e5bc12b1ba
4 changed files with 5 additions and 10 deletions

View File

@@ -224,10 +224,7 @@ fn main() {
&cfg,
));
let queue = Arc::new(queue::Queue::new(
spotify.clone(),
cfg.notify.unwrap_or(false),
));
let queue = Arc::new(queue::Queue::new(spotify.clone()));
#[cfg(feature = "mpris")]
let mpris_manager = Arc::new(mpris::MprisManager::new(spotify.clone(), queue.clone()));