LyricsView: Message for when MediaPlayer isn't running
This commit is contained in:
parent
f67161ff12
commit
59044460e5
|
@ -184,7 +184,7 @@ LyricsView::Pulse()
|
||||||
BString lyrics;
|
BString lyrics;
|
||||||
song.Lyrics(&lyrics);
|
song.Lyrics(&lyrics);
|
||||||
fTextView->SetText(lyrics.String());
|
fTextView->SetText(lyrics.String());
|
||||||
SetInactive(false);
|
SetInactive(lyrics.IsEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fAutoScroll) {
|
if (fAutoScroll) {
|
||||||
|
@ -236,9 +236,12 @@ LyricsView::SetInactive(bool inactive)
|
||||||
else if (!inactive && fScrollView->IsHidden())
|
else if (!inactive && fScrollView->IsHidden())
|
||||||
fScrollView->Show();
|
fScrollView->Show();
|
||||||
|
|
||||||
if (inactive) {
|
if (inactive && fMediaPlayer->IsValid()) {
|
||||||
fTextView->SetText("No lyrics to display!");
|
fTextView->SetText("No lyrics to display!");
|
||||||
fTextView->SetAlignment(B_ALIGN_CENTER);
|
fTextView->SetAlignment(B_ALIGN_CENTER);
|
||||||
|
} else if (inactive) {
|
||||||
|
fTextView->SetText("No targeted MediaPlayer!");
|
||||||
|
fTextView->SetAlignment(B_ALIGN_CENTER);
|
||||||
} else
|
} else
|
||||||
fTextView->SetAlignment(B_ALIGN_LEFT);
|
fTextView->SetAlignment(B_ALIGN_LEFT);
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue