Fix bug can not connected wired network success

This commit is contained in:
chenlelin 2021-05-13 21:13:18 +08:00
parent 9c9fcf917b
commit 98d95d209f
3 changed files with 4 additions and 1 deletions

View File

@ -1740,7 +1740,7 @@ void KylinDBus::slot_timeout()
//有线网的Ip属性变化时的响应函数
void KylinDBus::onLanIpPropertiesChanged()
{
if (!mw->is_stop_check_net_state) {
if (!mw->isHandlingWiredCableOn) {
emit this->updateWiredList(0);
}
}

View File

@ -967,6 +967,7 @@ void MainWindow::onPhysicalCarrierChanged(bool flag)
{
this->startLoading();
if (flag) {
isHandlingWiredCableOn = true;
is_stop_check_net_state = 1;
qDebug()<<"插入了有线网的网线";
syslog(LOG_DEBUG,"wired physical cable is already plug in");
@ -1006,6 +1007,7 @@ void MainWindow::onCarrierUpHandle()
this->stopLoading();
onBtnNetListClicked(1);
is_stop_check_net_state = 0;
isHandlingWiredCableOn = false;
}
void MainWindow::onCarrierDownHandle()

View File

@ -185,6 +185,7 @@ public:
bool isReconnectingLan = false; //是否正在执行lan的回连
int addNumberForWifi = 0; //短时间内收到关于wifi连接信号的次数
bool isHuaWeiPC;
bool isHandlingWiredCableOn = false;
bool canReconnectWifiTimeInterval = true;
QVector<QStringList> dbus_wifiList; //其他组件通过dbus接口获取到的wifi列表,第一个元素一定为已连接wifi若没有已连接wifi则显示为--
void requestRefreshWifiList(); //申请刷新wifi列表