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(); return process.readAllStandardOutput();
} }
@@ -826,7 +830,6 @@ void MainWindow::on_actionGitHub_triggered()
void MainWindow::on_actionRescan_Refresh_triggered() void MainWindow::on_actionRescan_Refresh_triggered()
{ {
clearButtonGroup();
scanDevices(); scanDevices();
} }

View File

@@ -394,7 +394,7 @@
<iconset theme="view-refresh"/> <iconset theme="view-refresh"/>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Rescan and Refresh</string> <string>Refresh Devices</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>F5</string> <string>F5</string>