From ebf8a98262971e991dd3b77c42c27e32c95a466c Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Mon, 17 Nov 2025 19:15:47 +0100 Subject: [PATCH] Remove debug output --- internal_filesystem/lib/mpos/app/app.py | 13 +++++++------ internal_filesystem/lib/mpos/ui/focus_direction.py | 14 +++----------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/internal_filesystem/lib/mpos/app/app.py b/internal_filesystem/lib/mpos/app/app.py index 43b96a17..c1e10c34 100644 --- a/internal_filesystem/lib/mpos/app/app.py +++ b/internal_filesystem/lib/mpos/app/app.py @@ -32,7 +32,7 @@ class App: self.installed_path = installed_path self.icon_path = self._find_icon_path() - print(f"App constructor got icon_path: {self.icon_path}") + #print(f"App constructor got icon_path: {self.icon_path}") if self.icon_path: self.icon_data = self._load_icon_data(self.icon_path) else: @@ -43,21 +43,22 @@ class App: return f"App({self.name}, version {self.version}, {self.category})" def _load_icon_data(self, icon_path): - print(f"App _load_icon_data for {icon_path}") + #print(f"App _load_icon_data for {icon_path}") try: f = open(icon_path, 'rb') return f.read() except Exception as e: - print(f"open {icon_path} got error: {e}") + #print(f"open {icon_path} got error: {e}") + pass def _check_icon_path(self, tocheck): try: - print(f"checking {tocheck}") + #print(f"checking {tocheck}") st = os.stat(tocheck) - print(f"_find_icon_path for {tocheck} found {st}") + #print(f"_find_icon_path for {tocheck} found {st}") return tocheck except Exception as e: - print(f"No app icon found in {tocheck}: {e}") + #print(f"No app icon found in {tocheck}: {e}") return None def _find_icon_path(self): diff --git a/internal_filesystem/lib/mpos/ui/focus_direction.py b/internal_filesystem/lib/mpos/ui/focus_direction.py index fcb831e5..f99a00a0 100644 --- a/internal_filesystem/lib/mpos/ui/focus_direction.py +++ b/internal_filesystem/lib/mpos/ui/focus_direction.py @@ -141,15 +141,7 @@ def find_closest_obj_in_direction(focus_group, current_focused, direction_degree for objnr in range(focus_group.get_obj_count()): obj = focus_group.get_obj_by_index(objnr) process_object(obj) - - # Result - if closest_obj: - print(f"Closest object in direction {direction_degrees}°:") - mpos.util.print_lvgl_widget(closest_obj) - else: - #print(f"No object found in direction {direction_degrees}°") - pass - + return closest_obj @@ -209,6 +201,6 @@ def move_focus_direction(angle): return o = find_closest_obj_in_direction(focus_group, current_focused, angle, False) if o: - print("move_focus_direction: moving focus to:") - mpos.util.print_lvgl_widget(o) + #print("move_focus_direction: moving focus to:") + #mpos.util.print_lvgl_widget(o) emulate_focus_obj(focus_group, o)