diff --git a/mainwindow.cpp b/mainwindow.cpp index f0df39f..472eeec 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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(); } }