Hide the button completely on nvme

This commit is contained in:
Spiros
2024-06-10 05:01:33 +03:00
parent 1016f82a2b
commit 7a14b956ae

View File

@@ -491,7 +491,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal
if (protocol != "NVMe") {
addSmartAttributesTable(attributes);
selfTestButton->setEnabled(true);
selfTestButton->show();
toolMenu->clear();
int i = 0;
@@ -505,7 +505,7 @@ void MainWindow::populateWindow(const QJsonObject &localObj, const QString &heal
}
} else {
addNvmeLogTable(nvmeLogOrdered);
selfTestButton->setDisabled(true);
selfTestButton->hide();
}
}