Skip to content

Commit 4dd3b4d

Browse files
committed
Don't sort available camera IDs
Remove sorting when building available_ids so the original frame key order is preserved. The DLC camera selection relies on the first active camera in frame_data.frames; using list(...) keeps the insertion/order semantics (dict order) instead of reordering keys with sorted(). This avoids unintended changes to camera priority caused by alphabetical/numeric sorting.
1 parent e6aa601 commit 4dd3b4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dlclivegui/gui/main_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ def _on_multi_frame_ready(self, frame_data: MultiFrameData) -> None:
13841384

13851385
# Determine DLC camera (first active camera)
13861386
selected_id = self._inference_camera_id
1387-
available_ids = sorted(frame_data.frames.keys())
1387+
available_ids = list(frame_data.frames.keys())
13881388
if selected_id in frame_data.frames:
13891389
dlc_cam_id = selected_id
13901390
else:

0 commit comments

Comments
 (0)