Merge branch 'optimize-notification' into 'dbus-interface'

fix bug 128339 127890

See merge request kylin-desktop/kylin-nm!665
This commit is contained in:
陈学超 2022-07-21 12:41:03 +00:00
commit 8684f425a3
2 changed files with 4 additions and 1 deletions

View File

@ -272,7 +272,7 @@ void WlanConnect::initComponent() {
}
initNet();
if (deviceList.isEmpty() || !m_interface->isValid()) {
if (!m_wifiSwitch->isChecked() || deviceList.isEmpty() || !m_interface->isValid()) {
hideLayout(ui->availableLayout);
}

View File

@ -587,6 +587,9 @@ void WlanListItem::onMenuTriggered(QAction *action)
<< m_wirelessNetItem.m_NetSsid << Q_FUNC_INFO << __LINE__;
m_netButton->startLoading();
} else if (action->text() == tr("Forget")) {
if (m_pwdLineEdit != nullptr) {
m_pwdLineEdit->clear();
}
m_wirelessConnectOperation->deleteWirelessConnect(m_wirelessNetItem.m_connectUuid);
}