Change time limit of waiting animation
This commit is contained in:
parent
4620339ff0
commit
2c33bbcfa4
|
@ -20,7 +20,7 @@
|
|||
#include <QIcon>
|
||||
|
||||
#define FRAMESPEED 60 //帧与帧之间的间隔时间(ms)
|
||||
#define ALLTIME 10*1000 //等待动画持续总时间
|
||||
#define ALLTIME 40*1000 //等待动画持续总时间
|
||||
|
||||
//加载动画控件'loadingGif'
|
||||
LoadingDiv::LoadingDiv(QWidget *parent) : QWidget(parent)
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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 = "<<reconnectWifiCmd<<". res = "<<con_res;
|
||||
|
||||
if (con_res == 0) {
|
||||
m_connected_by_self = true;
|
||||
m_connected_by_self = false;
|
||||
//回连成功,停止
|
||||
this->stopLoading();
|
||||
is_stop_check_net_state = 0;
|
||||
|
@ -3785,7 +3790,9 @@ void MainWindow::onExternalWifiChange()
|
|||
// //QString txt(tr("WiFi already connected external"));
|
||||
// //objKyDBus->showDesktopNotify(txt);
|
||||
// }
|
||||
qDebug() << "1111111111111111111111111111115";
|
||||
if (m_connected_by_self) {
|
||||
qDebug() << "1111111111111111111111111111116";
|
||||
m_connected_by_self = false;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue