mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-20 21:00:46 +01:00
Fix this properly
This commit is contained in:
parent
7e9668584b
commit
8e210d8e01
@ -143,10 +143,7 @@ void DeviceItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &op
|
||||
QVariant song_count = index.data(DeviceManager::Role_SongCount);
|
||||
if (song_count.isValid()) {
|
||||
int count = song_count.toInt();
|
||||
if (count == 1) // TODO: Fix this properly
|
||||
status_text = tr("%1 song").arg(count);
|
||||
else
|
||||
status_text = tr("%1 songs").arg(count);
|
||||
status_text = tr("%1 song%2").arg(count).arg(count == 1 ? "" : "s");
|
||||
}
|
||||
else {
|
||||
status_text = index.data(DeviceManager::Role_MountPath).toString();
|
||||
|
Loading…
Reference in New Issue
Block a user