Merge branch '1104' into 'dbus-interface'
fix:bug #89143 See merge request kylin-desktop/kylin-nm!383
This commit is contained in:
commit
33d00c23d7
|
@ -515,7 +515,7 @@ void WlanConnect::onActiveConnectionChanged(QString deviceName, QString ssid, QS
|
|||
for (itemIter = iter.value()->itemMap.begin(); itemIter != iter.value()->itemMap.end(); itemIter++) {
|
||||
if (itemIter.value()->uuid == uuid ) {
|
||||
item = itemIter.value();
|
||||
if (status == 4) {
|
||||
if (status == DEACTIVATED) {
|
||||
itemIter.value()->uuid.clear();
|
||||
}
|
||||
break;
|
||||
|
@ -531,12 +531,14 @@ void WlanConnect::onActiveConnectionChanged(QString deviceName, QString ssid, QS
|
|||
for (int i = 0; i < deviceFrameMap[deviceName]->itemMap.size(); ++i) {
|
||||
if (deviceFrameMap[deviceName]->itemMap.contains(ssid)) {
|
||||
item = deviceFrameMap[deviceName]->itemMap[ssid];
|
||||
if (status == 2) {
|
||||
if (status == ACTIVATED || status == ACTIVATING) {
|
||||
deviceFrameMap[deviceName]->itemMap[ssid]->uuid = uuid;
|
||||
deviceFrameMap[deviceName]->uuid = uuid;
|
||||
if (status == ACTIVATED) {
|
||||
deviceFrameMap[deviceName]->lanItemLayout->removeWidget(item);
|
||||
deviceFrameMap[deviceName]->lanItemLayout->insertWidget(0,item);
|
||||
} else if (status == 4) {
|
||||
}
|
||||
} else if (status == DEACTIVATED) {
|
||||
deviceFrameMap[deviceName]->itemMap[ssid]->uuid.clear();
|
||||
deviceFrameMap[deviceName]->uuid.clear();
|
||||
//todo 断开后排序 现在等下次更新列表 自动排序
|
||||
|
|
|
@ -995,6 +995,10 @@ void WlanPage::onWifiEnabledChanged(bool isWifiOn)
|
|||
|
||||
void WlanPage::onRefreshIconTimer()
|
||||
{
|
||||
if (!m_updateStrength) {
|
||||
return;
|
||||
}
|
||||
|
||||
emit timeToUpdate();
|
||||
|
||||
if(!this->isVisible()) {
|
||||
|
@ -1012,9 +1016,6 @@ void WlanPage::onRefreshIconTimer()
|
|||
return;
|
||||
}
|
||||
|
||||
if (!m_updateStrength) {
|
||||
return;
|
||||
}
|
||||
|
||||
QString activateSsid = m_activateConnectionItemMap.firstKey();
|
||||
int sortRow = 0;
|
||||
|
|
Loading…
Reference in New Issue