src/eric7/MicroPython/WifiDialogs/WifiApConfigDialog.py

branch
mpy_network
changeset 9798
4402d76c5fa9
parent 9797
3be7b2326e2c
child 9868
467288cffee2
--- a/src/eric7/MicroPython/WifiDialogs/WifiApConfigDialog.py	Fri Feb 24 14:11:20 2023 +0100
+++ b/src/eric7/MicroPython/WifiDialogs/WifiApConfigDialog.py	Fri Feb 24 18:36:43 2023 +0100
@@ -127,15 +127,16 @@
             and a flag indicating to save the parameters to the settings
         @rtype tuple of (str, str, int, bool)
         """
-        if self.__withIP:
-            ifconfig = (
+        ifconfig = (
+            (
                 self.addressEdit.text(),
                 self.netmaskEdit.text(),
                 self.gatewayEdit.text(),
                 self.dnsEdit.text(),
             )
-        else:
-            ifconfig = ("", "", "", "")
+            if self.__withIP
+            else ("", "", "", "")
+        )
 
         return (
             self.apSsidEdit.text(),

eric ide

mercurial