mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-01 10:06:43 +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);
|
QVariant song_count = index.data(DeviceManager::Role_SongCount);
|
||||||
if (song_count.isValid()) {
|
if (song_count.isValid()) {
|
||||||
int count = song_count.toInt();
|
int count = song_count.toInt();
|
||||||
if (count == 1) // TODO: Fix this properly
|
status_text = tr("%1 song%2").arg(count).arg(count == 1 ? "" : "s");
|
||||||
status_text = tr("%1 song").arg(count);
|
|
||||||
else
|
|
||||||
status_text = tr("%1 songs").arg(count);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
status_text = index.data(DeviceManager::Role_MountPath).toString();
|
status_text = index.data(DeviceManager::Role_MountPath).toString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user