Replaced the heart icon with a star for local files
This commit is contained in:
parent
183a3f9c72
commit
44af6f9d5d
|
@ -1164,6 +1164,10 @@ void MainWindow::MediaPlaying() {
|
||||||
ui_->action_play_pause->setText(tr("Pause"));
|
ui_->action_play_pause->setText(tr("Pause"));
|
||||||
|
|
||||||
const PlaylistItemPtr item = app_->player()->GetCurrentItem();
|
const PlaylistItemPtr item = app_->player()->GetCurrentItem();
|
||||||
|
if (!item) {
|
||||||
|
qLog(Debug) << "MediaPlaying: no current item -- not enabling buttons etc";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bool enable_play_pause = !(item->options() & PlaylistItem::PauseDisabled);
|
bool enable_play_pause = !(item->options() & PlaylistItem::PauseDisabled);
|
||||||
ui_->action_play_pause->setEnabled(enable_play_pause);
|
ui_->action_play_pause->setEnabled(enable_play_pause);
|
||||||
|
@ -1175,15 +1179,12 @@ void MainWindow::MediaPlaying() {
|
||||||
ui_->action_love->setEnabled(true);
|
ui_->action_love->setEnabled(true);
|
||||||
|
|
||||||
// Set the rate/love icon
|
// Set the rate/love icon
|
||||||
if (item) {
|
if (item->IsLocalLibraryItem()) {
|
||||||
if (item->IsLocalLibraryItem()) {
|
ui_->action_love->setIcon(IconLoader::Load("rate-enabled",
|
||||||
ui_->action_love->setIcon(IconLoader::Load("rate-enabled",
|
IconLoader::Base));
|
||||||
IconLoader::Base));
|
}
|
||||||
}
|
else {
|
||||||
else {
|
ui_->action_love->setIcon(IconLoader::Load("love", IconLoader::Lastfm));
|
||||||
ui_->action_love->setIcon(IconLoader::Load("love",
|
|
||||||
IconLoader::Lastfm));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_LIBLASTFM
|
#ifdef HAVE_LIBLASTFM
|
||||||
|
|
Loading…
Reference in New Issue