Show radio icon rather than nothing in notification.
This commit is contained in:
parent
7250587c03
commit
fc2877dc30
@ -34,6 +34,7 @@
|
|||||||
<file>copy.png</file>
|
<file>copy.png</file>
|
||||||
<file>move.png</file>
|
<file>move.png</file>
|
||||||
<file>last.fm/as.png</file>
|
<file>last.fm/as.png</file>
|
||||||
|
<file>last.fm/lastfm.png</file>
|
||||||
<file>last.fm/loved_radio.png</file>
|
<file>last.fm/loved_radio.png</file>
|
||||||
<file>last.fm/neighbour_radio.png</file>
|
<file>last.fm/neighbour_radio.png</file>
|
||||||
<file>last.fm/personal_radio.png</file>
|
<file>last.fm/personal_radio.png</file>
|
||||||
|
BIN
data/last.fm/lastfm.png
Normal file
BIN
data/last.fm/lastfm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
@ -90,6 +90,8 @@ class LastFMService : public RadioService {
|
|||||||
|
|
||||||
void ReloadSettings();
|
void ReloadSettings();
|
||||||
|
|
||||||
|
virtual QString Icon() { return ":last.fm/lastfm.png"; }
|
||||||
|
|
||||||
// Last.fm specific stuff
|
// Last.fm specific stuff
|
||||||
bool IsAuthenticated() const;
|
bool IsAuthenticated() const;
|
||||||
bool IsScrobblingEnabled() const { return scrobbling_enabled_; }
|
bool IsScrobblingEnabled() const { return scrobbling_enabled_; }
|
||||||
|
@ -62,6 +62,13 @@ void RadioPlaylistItem::InitMetadata() {
|
|||||||
|
|
||||||
metadata_.set_artist(artist_);
|
metadata_.set_artist(artist_);
|
||||||
metadata_.set_filetype(Song::Type_Stream);
|
metadata_.set_filetype(Song::Type_Stream);
|
||||||
|
|
||||||
|
if (service_) {
|
||||||
|
QString icon = service_->Icon();
|
||||||
|
if (!icon.isEmpty()) {
|
||||||
|
metadata_.set_art_manual(icon);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Song RadioPlaylistItem::Metadata() const {
|
Song RadioPlaylistItem::Metadata() const {
|
||||||
|
@ -53,6 +53,8 @@ class RadioService : public QObject {
|
|||||||
|
|
||||||
virtual void ReloadSettings() {}
|
virtual void ReloadSettings() {}
|
||||||
|
|
||||||
|
virtual QString Icon() { return QString(); }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void TaskStarted(MultiLoadingIndicator::TaskType);
|
void TaskStarted(MultiLoadingIndicator::TaskType);
|
||||||
void TaskFinished(MultiLoadingIndicator::TaskType);
|
void TaskFinished(MultiLoadingIndicator::TaskType);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user