Skip to content

Commit

Permalink
Merge branch 'main' into handle_DeprecatedDict
Browse files Browse the repository at this point in the history
  • Loading branch information
alisterburt authored Sep 6, 2024
2 parents c5be2d4 + 5c280af commit ea506c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions napari_animation/frame_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ def __init__(self, key_frames: KeyFrameList, cache_size: int = 10) -> None:
super().__init__()
self._key_frames = key_frames
key_frames.events.inserted.connect(self._rebuild_keyframe_index)
key_frames.events.removed.connect(self._rebuild_keyframe_index)
key_frames.events.changed.connect(self._rebuild_keyframe_index)
key_frames.events.removed.connect(
self._rebuild_keyframe_index, position="first"
)
key_frames.events.changed.connect(
self._rebuild_keyframe_index, position="first"
)
key_frames.events.reordered.connect(self._rebuild_keyframe_index)

self.__current_index = 0
Expand Down

0 comments on commit ea506c3

Please sign in to comment.