internet-connection.py:

change position of the label

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-19 19:52:16 +02:00
parent 261d15f1a8
commit ef4465a928

View File

@ -44,10 +44,10 @@ class InternetConnectionPlugin(plugins.Plugin):
# Connect to the host - tells us if the host is actually reachable # Connect to the host - tells us if the host is actually reachable
s = socket.create_connection((host, 80), 2) s = socket.create_connection((host, 80), 2)
s.close() s.close()
ui.set('connection_status', 'C') ui.set('connection_status', '')
except: except:
# if the command failed, it means there is no active Internet connection # if the command failed, it means there is no active Internet connection
ui.set('connection_status', 'D') ui.set('connection_status', '')
def on_unload(self, ui): def on_unload(self, ui):
with ui._lock: with ui._lock: