From 7a14b956ae733f189ef971f5000ce5bf80071a67 Mon Sep 17 00:00:00 2001 From: Spiros Date: Mon, 10 Jun 2024 05:01:33 +0300 Subject: [PATCH] Hide the button completely on nvme --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }