From 9c80de5916490ee5e6014bdf1981fd11028a6c6c Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Mon, 18 Sep 2023 09:23:07 +0200 Subject: [PATCH] v2.4.1 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/internet-connection.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pwnagotchi/plugins/default/internet-connection.py b/pwnagotchi/plugins/default/internet-connection.py index 53c68ebd..279d086a 100644 --- a/pwnagotchi/plugins/default/internet-connection.py +++ b/pwnagotchi/plugins/default/internet-connection.py @@ -44,3 +44,7 @@ class InternetConnectionPlugin(plugins.Plugin): except subprocess.CalledProcessError: # if the command failed, it means there is no active Internet connection ui.set('connection_status', 'disconnected') + + def on_unload(self, ui): + with ui._lock: + ui.remove_element('connection_status')