fix(main.py): add print statements to track navigation changes for debugging

This commit is contained in:
2025-08-19 08:42:30 +02:00
parent 7464efbd95
commit 0826b8a8b7

View File

@@ -727,6 +727,7 @@ class MediaGrader:
self.media_files.append(original_file)
# Navigate to the restored file
print("Navigating to: ", original_index)
self.current_index = original_index
print(f"Undone: Moved {original_file.name} back from grade folder")
@@ -809,6 +810,7 @@ class MediaGrader:
break
elif key == ord("p"):
self.current_index = max(0, self.current_index - 1)
print("Navigating to: ", self.current_index)
break
elif key == ord("u"):
if self.undo_last_action():
@@ -844,6 +846,7 @@ class MediaGrader:
self.load_current_frame()
if key not in [ord("p")]:
print("Navigating to: ", self.current_index)
self.current_index += 1
if self.current_cap: