From 4e61a455b5cf7f9679d7182c494c8ea2b6156b81 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Fri, 10 Feb 2023 00:31:12 +0000 Subject: [PATCH] Hide setup screen if disabled --- wfmain.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wfmain.cpp b/wfmain.cpp index 0282112..ff83b9e 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -9122,6 +9122,13 @@ void wfmain::on_enableUsbChk_clicked(bool checked) emit sendUsbControllerButtons(&usbButtons); emit sendUsbControllerKnobs(&usbKnobs); } + else { + if (shut != Q_NULLPTR) { + if (shut->isVisible()) { + shut->hide(); + } + } + } #endif }