Highlight the correct disk on the grid view

This commit is contained in:
Spiros
2025-05-29 20:32:08 +03:00
parent 2929829729
commit 5f126e4f28
3 changed files with 42 additions and 0 deletions

View File

@@ -352,11 +352,15 @@ void MainWindow::updateUI()
connect(button, &QPushButton::clicked, this, [=]() {
updateWindow();
disksGroup->actions().at(buttonIndex)->setChecked(true);
gridView->highlightDisk(buttonIndex);
gridView->setActiveIndex(buttonIndex);
});
connect(diskAction, &QAction::triggered, this, [=]() {
updateWindow();
button->setChecked(true);
gridView->highlightDisk(buttonIndex);
gridView->setActiveIndex(buttonIndex);
});
if (firstTime) {
@@ -364,6 +368,7 @@ void MainWindow::updateUI()
globalHealth = health;
button->setChecked(true);
diskAction->setChecked(true);
gridView->setActiveIndex(0);
firstTime = false;
globalIsNvme = isNvme;
if (isNvme) {