Skip to content

Commit

Permalink
Use "selected_session" in UnlinkVideo command
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Mar 18, 2024
1 parent 4ecbb95 commit 77283d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sleap/gui/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -3937,8 +3937,7 @@ class UnlinkVideo(EditCommand):
@staticmethod
def do_action(context: CommandContext, params: dict):
camcorder = context.state["selected_camera"]
# TODO(LM): replace with state["selected_session"]
recording_session = context.state["session"]
recording_session = context.state["selected_session"]

video = camcorder.get_video(recording_session)

Expand Down

0 comments on commit 77283d0

Please sign in to comment.