mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-21 20:20:54 +03:00
Some controllers are stupid, show dashes instead of 0 GB
This commit is contained in:
@@ -58,7 +58,7 @@ void CustomButton::setText2(const QString &newText2) {
|
||||
if (text2 != newText2) {
|
||||
text2 = newText2;
|
||||
adjustWidthToFitText();
|
||||
update(); // Repaint the button
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -310,6 +310,14 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal
|
||||
}
|
||||
}
|
||||
|
||||
if (totalReads == "0 GB") {
|
||||
totalReads = "----";
|
||||
}
|
||||
|
||||
if (totalWrites == "0 GB") {
|
||||
totalWrites = "----";
|
||||
}
|
||||
|
||||
totalReadsLineEdit->setText(totalReads);
|
||||
totalReadsLineEdit->setAlignment(Qt::AlignRight);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user