From c1c66c37d57ce3af3a0a9b6c8be09abe0dd5f648 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Thu, 8 Oct 2020 23:20:16 -0500 Subject: [PATCH] Disable buttons before enabling other buttons, so that window doesn't get resized --- qt/OpenRGBDialog2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qt/OpenRGBDialog2.cpp b/qt/OpenRGBDialog2.cpp index 31305204..c66c7305 100644 --- a/qt/OpenRGBDialog2.cpp +++ b/qt/OpenRGBDialog2.cpp @@ -766,16 +766,16 @@ void Ui::OpenRGBDialog2::SetDetectionViewState(bool detection_showing) /*---------------------------------------------------------*\ | Show the detection progress and hide the normal buttons | \*---------------------------------------------------------*/ - ui->DetectionProgressBar->setVisible(true); - ui->DetectionProgressLabel->setVisible(true); - ui->ButtonStopDetection->setVisible(true); - ui->ButtonToggleDeviceView->setVisible(false); ui->ButtonRescan->setVisible(false); ui->ButtonLoadProfile->setVisible(false); ui->ButtonSaveProfile->setVisible(false); ui->ButtonDeleteProfile->setVisible(false); ui->ProfileBox->setVisible(false); + + ui->DetectionProgressBar->setVisible(true); + ui->DetectionProgressLabel->setVisible(true); + ui->ButtonStopDetection->setVisible(true); } else {