EditTagDialog: Add button to fetch lyrics

Co-Authored-By: Jonas Kvinge <jonas@jkvinge.net>
This commit is contained in:
Célestin Matte
2024-03-06 23:16:29 +01:00
committed by Jonas Kvinge
parent a3207a5703
commit 27ee6e7643
5 changed files with 56 additions and 2 deletions

View File

@@ -631,7 +631,12 @@ void ContextView::UpdateLyrics(const quint64 id, const QString &provider, const
if (static_cast<qint64>(id) != lyrics_id_) return;
lyrics_ = lyrics + "\n\n(Lyrics from " + provider + ")\n";
if (lyrics.isEmpty()) {
lyrics_ = "No lyrics found.\n";
}
else {
lyrics_ = lyrics + "\n\n(Lyrics from " + provider + ")\n";
}
lyrics_id_ = -1;
if (action_show_lyrics_->isChecked() && !lyrics_.isEmpty()) {