diff --git a/src/loadingdiv.cpp b/src/loadingdiv.cpp index 60a6694a..ddaeef31 100644 --- a/src/loadingdiv.cpp +++ b/src/loadingdiv.cpp @@ -20,7 +20,7 @@ #include #define FRAMESPEED 60 //帧与帧之间的间隔时间(ms) -#define ALLTIME 10*1000 //等待动画持续总时间 +#define ALLTIME 40*1000 //等待动画持续总时间 //加载动画控件'loadingGif' LoadingDiv::LoadingDiv(QWidget *parent) : QWidget(parent) diff --git a/src/main.cpp b/src/main.cpp index c53cb619..8759f993 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -81,7 +81,7 @@ int main(int argc, char *argv[]) QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QApplication a(argc, argv); - //qInstallMessageHandler(messageOutput); + qInstallMessageHandler(messageOutput); qDebug()<<"Kylin Network Manager Is Already Launched"; diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 23c47963..da7e4b4a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1401,13 +1401,18 @@ void MainWindow::on_btnWifiList_clicked() btnAddNet->show(); this->startLoading(); if (isHuaWeiPC) { + qDebug() << "11111111111111111111111111110"; QtConcurrent::run([=]() { + qDebug() << "11111111111111111111111111111"; if (m_connected_by_self) { + qDebug() << "11111111111111111111111111112"; m_connected_by_self = false; } else { if (this->isRadioWifiTurningOn) { + qDebug() << "11111111111111111111111111113"; qDebug() << "Turning wifi switch on now, stop to load wifi list"; } else { + qDebug() << "11111111111111111111111111114"; objKyDBus->requestScanWifi(); //要求后台扫描AP sleep(2); qDebug() << "scan finished, will load wifi list"; @@ -1848,7 +1853,7 @@ void MainWindow::getWifiListDone(QStringList slist) qDebug()<<"Reconnect finished, cmd = "<showDesktopNotify(txt); // } + qDebug() << "1111111111111111111111111111115"; if (m_connected_by_self) { + qDebug() << "1111111111111111111111111111116"; m_connected_by_self = false; return; }