change switch status

This commit is contained in:
Andrew Pit 2021-06-03 21:36:32 +08:00
parent b71893f5d6
commit d7cdfd3ea9
1 changed files with 1 additions and 1 deletions

View File

@ -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()));