mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Connected the labels in the TransportView to update when track change.
This commit is contained in:
parent
1d7072fd8c
commit
94f71d27c5
@ -112,7 +112,18 @@ void TransportController::OnTrackChange(musik::core::TrackPtr track){
|
||||
return;
|
||||
}
|
||||
|
||||
// this->transportView.titleLabel. // HMM.. Can't find how to set the labels
|
||||
win32cpp::uistring title(_T("-"));
|
||||
win32cpp::uistring artist(_T("-"));
|
||||
|
||||
if(track->GetValue("title"))
|
||||
title.assign( track->GetValue("title") );
|
||||
|
||||
if(track->GetValue("visual_artist"))
|
||||
artist.assign( track->GetValue("visual_artist") );
|
||||
|
||||
|
||||
this->transportView.titleLabel->SetCaption(title);
|
||||
this->transportView.artistLabel->SetCaption(artist);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user