Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(4a -> 4) Add visual indicator for current camera #1783

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion sleap/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,10 @@ def update_session(video):
self.state.connect(
"video",
callbacks=[
update_session, # Important to update session before other callbacks
switch_frame,
lambda x: self._update_seekbar_marks(),
update_frame_chunk_suggestions,
update_session,
],
)

Expand Down Expand Up @@ -1417,6 +1417,11 @@ def updateStatusMessage(self, message: Optional[str] = None):
else:
self.statusBar().setStyleSheet("color: black")

if self.state["session"] is not None and current_video is not None:
camera = self.state["session"].get_camera(video=self.state["video"])
if camera is not None:
message += f"{spacer}Camera: {camera.name}"

self.statusBar().showMessage(message)

def resetPrefs(self):
Expand Down
Loading