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

@@ -83,7 +83,7 @@ pub enum PlayerEvent {
pub struct Spotify {
events: EventManager,
credentials: Credentials,
cfg: config::Config,
pub cfg: config::Config,
status: RwLock<PlayerEvent>,
api: RwLock<SpotifyAPI>,
elapsed: RwLock<Option<Duration>>,