finish the wifi dialog

also guess who the idiot is who forgot to add their files
This commit is contained in:
Arisotura
2020-05-28 23:12:21 +02:00
parent 590ab2ac2b
commit a38b20484d
5 changed files with 237 additions and 13 deletions

View File

@ -1671,7 +1671,24 @@ void MainWindow::onAudioSettingsFinished(int res)
void MainWindow::onOpenWifiSettings()
{
WifiSettingsDialog::openDlg(this);
WifiSettingsDialog* dlg = WifiSettingsDialog::openDlg(this);
connect(dlg, &WifiSettingsDialog::finished, this, &MainWindow::onWifiSettingsFinished);
}
void MainWindow::onWifiSettingsFinished(int res)
{
emuThread->emuPause();
if (Wifi::MPInited)
{
Platform::MP_DeInit();
Platform::MP_Init();
}
Platform::LAN_DeInit();
Platform::LAN_Init();
emuThread->emuUnpause();
}
void MainWindow::onChangeSavestateSRAMReloc(bool checked)