diff -r e69788b71c00 -r 467288cffee2 src/eric7/MicroPython/WifiDialogs/WifiConnectionDialog.py --- a/src/eric7/MicroPython/WifiDialogs/WifiConnectionDialog.py Thu Mar 09 16:59:39 2023 +0100 +++ b/src/eric7/MicroPython/WifiDialogs/WifiConnectionDialog.py Fri Mar 10 18:04:06 2023 +0100 @@ -71,16 +71,25 @@ self.showPasswordButton.setIcon(EricPixmapCache.getIcon("showPassword")) self.showPasswordButton.setToolTip(self.tr("Press to show the password")) + @pyqtSlot() + def accept(self): + """ + Public slot accepting the dialog. + """ + if self.rememberCheckBox.isChecked(): + Preferences.setMicroPython("WifiName", self.ssidEdit.text()) + Preferences.setMicroPython("WifiPassword", self.passwordEdit.text()) + + super().accept() + def getConnectionParameters(self): """ Public method to get the entered connection parameters. - @return tuple containing the SSID, password and a flag indicating, if the - parameters shall be saved to the preferences - @rtype tuple of (str, str, bool) + @return tuple containing the SSID and the password + @rtype tuple of (str, str) """ return ( self.ssidEdit.text(), self.passwordEdit.text(), - self.rememberCheckBox.isChecked(), )