Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-18 09:23:07 +02:00
parent 8f4304aa4f
commit 9c80de5916

View File

@ -44,3 +44,7 @@ class InternetConnectionPlugin(plugins.Plugin):
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
# 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', 'disconnected') ui.set('connection_status', 'disconnected')
def on_unload(self, ui):
with ui._lock:
ui.remove_element('connection_status')