From d7cdfd3ea9ce0e0c82b5ecacbfc3494eb8e0f60d Mon Sep 17 00:00:00 2001 From: Andrew Pit Date: Thu, 3 Jun 2021 21:36:32 +0800 Subject: [PATCH] change switch status --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 1b82eef4..f142ade3 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4305,7 +4305,7 @@ void MainWindow::onRfkillStatusChanged() QThread *rfkill_t = new QThread(); BackThread *rfkill_bt = new BackThread(); rfkill_bt->moveToThread(rfkill_t); - btnWireless->setSwitchStatus(true); + btnWireless->setSwitchStatus(false); connect(rfkill_t, SIGNAL(finished()), rfkill_t, SLOT(deleteLater())); connect(rfkill_t, SIGNAL(started()), rfkill_bt, SLOT(rfkillExecDisWifi())); connect(rfkill_bt, SIGNAL(disWifiDoneByRfkill()), this, SLOT(rfkillDisableWifiDone()));