viewer: use label instead of media name

This commit is contained in:
itsmattkc
2021-01-09 10:38:04 +11:00
parent 181235f6ce
commit 441a459774
6 changed files with 29 additions and 35 deletions
+3 -3
View File
@@ -130,13 +130,13 @@ void TimeBasedPanel::ConnectViewerNode(ViewerOutput *node)
}
if (widget_->GetConnectedNode()) {
disconnect(widget_->GetConnectedNode(), &ViewerOutput::MediaNameChanged, this, &TimeBasedPanel::SetSubtitle);
disconnect(widget_->GetConnectedNode(), &ViewerOutput::LabelChanged, this, &TimeBasedPanel::SetSubtitle);
}
widget_->ConnectViewerNode(node);
if (node) {
connect(node, &ViewerOutput::MediaNameChanged, this, &TimeBasedPanel::SetSubtitle);
connect(node, &ViewerOutput::LabelChanged, this, &TimeBasedPanel::SetSubtitle);
}
// Update strings
@@ -163,7 +163,7 @@ void TimeBasedPanel::SetTimeBasedWidget(TimeBasedWidget *widget)
void TimeBasedPanel::Retranslate()
{
if (GetTimeBasedWidget()->GetConnectedNode()) {
SetSubtitle(GetTimeBasedWidget()->GetConnectedNode()->media_name());
SetSubtitle(GetTimeBasedWidget()->GetConnectedNode()->GetLabel());
} else {
SetSubtitle(tr("(none)"));
}