mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-17 11:01:26 +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) {
|
if (text2 != newText2) {
|
||||||
text2 = newText2;
|
text2 = newText2;
|
||||||
adjustWidthToFitText();
|
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->setText(totalReads);
|
||||||
totalReadsLineEdit->setAlignment(Qt::AlignRight);
|
totalReadsLineEdit->setAlignment(Qt::AlignRight);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user