private void OnCurrentAudioChanged(CurrentAudioChangedMessage message) { _artRequested = false; }
private void OnCurrentAudioChanged(CurrentAudioChangedMessage message) { RaisePropertyChanged("CurrentAudio"); RaisePropertyChanged("CurrentRadio"); RaisePropertyChanged("IsPlaying"); RaisePropertyChanged("CurrentPlaylist"); RaisePropertyChanged("WindowTitle"); _artRequested = false; _statusUpdated = false; _nowPlayingUpdated = false; _scrobbled = false; GetTrackImage(); if (Settings.Instance.ShowTrackNotifications && message.OldAudio != null) //disable show on first start by checking for null ShowTrackNotification(message.NewAudio); }
private void OnCurrentAudioChanged(CurrentAudioChangedMessage message) { RaisePropertyChanged("CurrentAudio"); RaisePropertyChanged("CurrentRadio"); RaisePropertyChanged("IsPlaying"); RaisePropertyChanged("CurrentPlaylist"); RaisePropertyChanged("WindowTitle"); RaisePropertyChanged("CanBroadcast"); _artRequested = false; _statusUpdated = false; _nowPlayingUpdated = false; _scrobbled = false; CancelCover(); GetTrackImage(_coverCancellationToken.Token); if (Settings.Instance.ShowTrackNotifications && message.OldAudio != null) //disable show on first start by checking for null { Application.Current.Dispatcher.BeginInvoke(new Action(() => { ShowTrackNotification(message.NewAudio); })); } }