fix(main.py): add print statements to track navigation changes for debugging
This commit is contained in:
3
main.py
3
main.py
@@ -727,6 +727,7 @@ class MediaGrader:
|
|||||||
self.media_files.append(original_file)
|
self.media_files.append(original_file)
|
||||||
|
|
||||||
# Navigate to the restored file
|
# Navigate to the restored file
|
||||||
|
print("Navigating to: ", original_index)
|
||||||
self.current_index = original_index
|
self.current_index = original_index
|
||||||
|
|
||||||
print(f"Undone: Moved {original_file.name} back from grade folder")
|
print(f"Undone: Moved {original_file.name} back from grade folder")
|
||||||
@@ -809,6 +810,7 @@ class MediaGrader:
|
|||||||
break
|
break
|
||||||
elif key == ord("p"):
|
elif key == ord("p"):
|
||||||
self.current_index = max(0, self.current_index - 1)
|
self.current_index = max(0, self.current_index - 1)
|
||||||
|
print("Navigating to: ", self.current_index)
|
||||||
break
|
break
|
||||||
elif key == ord("u"):
|
elif key == ord("u"):
|
||||||
if self.undo_last_action():
|
if self.undo_last_action():
|
||||||
@@ -844,6 +846,7 @@ class MediaGrader:
|
|||||||
self.load_current_frame()
|
self.load_current_frame()
|
||||||
|
|
||||||
if key not in [ord("p")]:
|
if key not in [ord("p")]:
|
||||||
|
print("Navigating to: ", self.current_index)
|
||||||
self.current_index += 1
|
self.current_index += 1
|
||||||
|
|
||||||
if self.current_cap:
|
if self.current_cap:
|
||||||
|
Reference in New Issue
Block a user