mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-04 17:38:05 +00:00
Ensure very long album names are properly truncated in TrackListView
header rows.
This commit is contained in:
parent
0cade3f4cb
commit
28dfeeb3be
@ -392,6 +392,8 @@ IScrollAdapter::EntryPtr TrackListView::Adapter::GetEntry(cursespp::ScrollableWi
|
|||||||
album = _TSTR("tracklist_unknown_album");
|
album = _TSTR("tracklist_unknown_album");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
album = text::Ellipsize(album, this->GetWidth());
|
||||||
|
|
||||||
std::shared_ptr<TrackListEntry> entry(new
|
std::shared_ptr<TrackListEntry> entry(new
|
||||||
TrackListEntry(album, trackIndex, RowType::Separator));
|
TrackListEntry(album, trackIndex, RowType::Separator));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user