mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-13 01:31:28 +03:00
Fix bug with cyclic view and a single button
This commit is contained in:
@@ -112,7 +112,7 @@ void MainWindow::onPrevButtonClicked()
|
|||||||
|
|
||||||
void MainWindow::updateNavigationButtons(int currentIndex)
|
void MainWindow::updateNavigationButtons(int currentIndex)
|
||||||
{
|
{
|
||||||
prevButton->setEnabled(currentIndex > 0||ui->actionCyclic_Navigation->isChecked()); // We can use setVisible if we want to mimic CrystalDiskInfo
|
prevButton->setEnabled(currentIndex > 0||(ui->actionCyclic_Navigation->isChecked() && buttonGroup->buttons().size() > 1)); // We can use setVisible if we want to mimic CrystalDiskInfo
|
||||||
nextButton->setEnabled(currentIndex < buttonGroup->buttons().size() - 1||ui->actionCyclic_Navigation->isChecked());
|
nextButton->setEnabled(currentIndex < buttonGroup->buttons().size() - 1||ui->actionCyclic_Navigation->isChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user