Fix buttons hiding on failed refresh

This commit is contained in:
Spiros
2024-06-10 16:43:02 +03:00
parent 691727a992
commit 9fb4d3c13a
2 changed files with 5 additions and 2 deletions

View File

@@ -746,6 +746,10 @@ QString MainWindow::getSmartctlOutput(const QStringList &arguments, bool root)
}
}
if (root && !initializing) {
clearButtonGroup();
}
return process.readAllStandardOutput();
}
@@ -826,7 +830,6 @@ void MainWindow::on_actionGitHub_triggered()
void MainWindow::on_actionRescan_Refresh_triggered()
{
clearButtonGroup();
scanDevices();
}