Skip to content

Commit e323c7a

Browse files
Less debug
1 parent 219b80f commit e323c7a

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

internal_filesystem/lib/mpos/ui/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,14 @@ def empty_screen_stack():
205205
screen_stack.clear()
206206

207207
def move_focusgroup_objects(fromgroup, togroup):
208-
print(f"Moving {fromgroup.get_obj_count()} focused objects")
208+
#print(f"Moving {fromgroup.get_obj_count()} focused objects")
209209
for objnr in range(fromgroup.get_obj_count()):
210210
#print(f"saving object {objnr} from default focusgroup to current_focusgroup")
211211
next = fromgroup.get_obj_by_index(0)
212-
mpos.util.print_lvgl_widget(next)
212+
#mpos.util.print_lvgl_widget(next)
213213
if next:
214214
togroup.add_obj(next)
215-
print("Done moving focused objects")
215+
#print("Done moving focused objects")
216216

217217

218218
# Saves all objects from the default focus group in the activity's focus group
@@ -222,9 +222,9 @@ def save_and_clear_current_focusgroup():
222222
if default_focusgroup and len(screen_stack) > 0:
223223
current_activity, current_screen, current_focusgroup, _ = screen_stack.pop()
224224
current_focused_object = default_focusgroup.get_focused()
225-
if current_focused_object:
226-
print("current_focused_object: ")
227-
mpos.util.print_lvgl_widget(current_focused_object)
225+
#if current_focused_object:
226+
# print("current_focused_object: ")
227+
# mpos.util.print_lvgl_widget(current_focused_object)
228228
move_focusgroup_objects(lv.group_get_default(), current_focusgroup)
229229
screen_stack.append((current_activity, current_screen, current_focusgroup, current_focused_object))
230230

@@ -285,8 +285,8 @@ def back_screen():
285285
default_focusgroup = lv.group_get_default()
286286
if default_focusgroup:
287287
move_focusgroup_objects(prev_focusgroup, default_focusgroup)
288-
print("restoring prev_focused_object: ")
289-
mpos.util.print_lvgl_widget(prev_focused_object)
288+
#print("restoring prev_focused_object: ")
289+
#mpos.util.print_lvgl_widget(prev_focused_object)
290290
mpos.ui.focus_direction.emulate_focus_obj(default_focusgroup, prev_focused_object) # LVGL 9.3 should have: default_focusgroup.focus_obj(prev_focused_object)
291291
if prev_activity:
292292
prev_activity.onResume(prev_screen)

internal_filesystem/lib/mpos/ui/focus_direction.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ def process_object(obj, depth=0):
147147
print(f"Closest object in direction {direction_degrees}°:")
148148
mpos.util.print_lvgl_widget(closest_obj)
149149
else:
150-
print(f"No object found in direction {direction_degrees}°")
150+
#print(f"No object found in direction {direction_degrees}°")
151+
pass
151152

152153
return closest_obj
153154

0 commit comments

Comments
 (0)