From 4ee52614cf4a2a483dd7a3f78c5f1d2229d43ca6 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Wed, 25 Mar 2026 18:19:47 +0100 Subject: [PATCH] Revert "fix(fix_services): remove dead code in on_ui_setup" This reverts commit bbf1d95bfcd980cd1ea26d14d56954e65a73290b. --- pwnagotchi/plugins/default/fix_services.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pwnagotchi/plugins/default/fix_services.py b/pwnagotchi/plugins/default/fix_services.py index b956dc5c..86efc221 100644 --- a/pwnagotchi/plugins/default/fix_services.py +++ b/pwnagotchi/plugins/default/fix_services.py @@ -453,6 +453,15 @@ class FixServices(plugins.Plugin): def on_ui_setup(self, ui): if self.is_disabled: return + with ui._lock: + # add custom UI elements + if "position" in self.options: + pos = self.options['position'].split(',') + pos = [int(x.strip()) for x in pos] + else: + pos = (ui.width() / 2 + 35, ui.height() - 11) + + logging.debug("Got here") # called when the ui is updated def on_ui_update(self, ui):