fix(fix_services): remove dead code in on_ui_setup

on_ui_setup computes a pos variable from options or defaults but
never uses it. The ui._lock context and logging.debug("Got here")
are leftover scaffolding with no effect.

Signed-off-by: PwnPacker <4704376+CoderFX@users.noreply.github.com>
This commit is contained in:
CoderFX
2026-03-11 02:44:49 +02:00
parent 8b1297d836
commit bbf1d95bfc

View File

@@ -453,15 +453,6 @@ 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):