Refactory network module.

This commit is contained in:
sunwen
2023-09-20 10:09:57 +08:00
parent 298e6c6c53
commit 7063bbfb1e
6 changed files with 150 additions and 197 deletions

View File

@@ -93,9 +93,10 @@ SystemSettingForm::SystemSettingForm(QWidget* parent)
JsonObject::Instance()->setCompleteNotify(scanCompleteButton->getChecked());
});
connect(mUI->btnNetwork, &QToolButton::clicked, [=]() {
if (DialogManager::Default()->requestInputAdminPasswd() == QDialog::Accepted)
auto result = DialogManager::Default()->requestInputAdminPasswd();
if (result.ResultCode == QDialog::Accepted)
{
//JsonObject::Instance()->setPassword(dialog.getPsw());
JsonObject::Instance()->setPassword(result.ResultData.toString());
DialogManager::Default()->requestEditNetworkConfig();
}
});