mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: 修复有线可能出现连接中和已连接两种状态的问题
当启动时,网络正在连接(后面不再发送网络已连接成功),然后又收到activeWiredConnectionInfoChanged信号,可能就会导致这种现象 Log: 修复有线可能出现连接中和已连接两种状态的问题 Task: https://pms.uniontech.com/zentao/task-view-64795.html Change-Id: I43bccf7ab333356fa61bb11bec0287a59011f2c5
This commit is contained in:
parent
8cfd66964b
commit
90e5f35c9e
@ -268,12 +268,10 @@ void WiredItem::deviceStateChanged(NetworkDevice::DeviceStatus state)
|
||||
m_stateButton->setVisible(false);
|
||||
m_loadingStat->setVisible(true);
|
||||
m_loadingStat->start();
|
||||
m_loadingStat->show();
|
||||
}
|
||||
break;
|
||||
case NetworkDevice::Activated: {
|
||||
m_loadingStat->stop();
|
||||
m_loadingStat->hide();
|
||||
m_loadingStat->setVisible(false);
|
||||
m_stateButton->setVisible(true);
|
||||
}
|
||||
@ -289,6 +287,8 @@ void WiredItem::changedActiveWiredConnectionInfo(const QJsonObject &connInfo)
|
||||
m_stateButton->setVisible(false);
|
||||
} else {
|
||||
m_stateButton->setVisible(true);
|
||||
m_loadingStat->stop();
|
||||
m_loadingStat->setVisible(false);
|
||||
}
|
||||
|
||||
auto strTitle = connInfo.value("ConnectionName").toString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user