diff -r 33e7b9d3f91c -r ffe7432f716b src/eric7/MicroPython/WifiDialogs/WifiStatusDialog.py --- a/src/eric7/MicroPython/WifiDialogs/WifiStatusDialog.py Wed Aug 02 17:22:20 2023 +0200 +++ b/src/eric7/MicroPython/WifiDialogs/WifiStatusDialog.py Thu Aug 03 17:33:07 2023 +0200 @@ -48,6 +48,14 @@ self.tr("Yes") if overallStatus["active"] else self.tr("No"), ], ) + with contextlib.suppress(KeyError): + QTreeWidgetItem( + self.statusTree, [self.tr("Hostname"), overallStatus["hostname"]] + ) + with contextlib.suppress(KeyError): + QTreeWidgetItem( + self.statusTree, [self.tr("Country"), overallStatus["country"]] + ) # client interface if clientStatus: @@ -69,10 +77,6 @@ ) with contextlib.suppress(KeyError): QTreeWidgetItem(header, [self.tr("Status"), clientStatus["status"]]) - with contextlib.suppress(KeyError): - QTreeWidgetItem( - header, [self.tr("Hostname"), clientStatus["hostname"]] - ) QTreeWidgetItem( header, [self.tr("IPv4 Address"), clientStatus["ifconfig"][0]] ) @@ -148,8 +152,6 @@ with contextlib.suppress(KeyError): QTreeWidgetItem(header, [self.tr("Status"), apStatus["status"]]) with contextlib.suppress(KeyError): - QTreeWidgetItem(header, [self.tr("Hostname"), apStatus["hostname"]]) - with contextlib.suppress(KeyError): QTreeWidgetItem( header, [self.tr("IPv4 Address"), apStatus["ifconfig"][0]] )