Make Partition Manager device selector more user friendly:
Show Device name – Capacity (Device node) BUG:259679
This commit is contained in:
parent
227c77e801
commit
b25d7c19de
|
@ -112,5 +112,8 @@ bool Device::operator!=(const Device& other) const
|
|||
|
||||
QString Device::prettyName() const
|
||||
{
|
||||
return QStringLiteral("%1 (%2, %3)").arg(deviceNode()).arg(name()).arg(Capacity::formatByteSize(this->capacity()));
|
||||
if ( name().isEmpty() )
|
||||
return deviceNode();
|
||||
else
|
||||
return i18nc("Device name – Capacity (device node)", "%1 – %2 (%3)", name(), Capacity::formatByteSize(capacity()), deviceNode());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue