Merge branch 'optimize-notification' into 'dbus-interface'
fix bug 128339 127890 See merge request kylin-desktop/kylin-nm!665
This commit is contained in:
commit
8684f425a3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue