Keyframes don't get restored after undo

Advanced keyframes don’t get restored after undoing Trim clip In point.

  1. Start Shotcut.
  2. Open a video or image file.
  3. Drag and drop it into the timeline.
  4. Set a Brightness filter.
  5. Click the keyframe icon to set advanced keyframes.
  6. Set 4 keyframes in the Keyframes dock.
  7. Click on the left edge of the clip in the timeline and drag it to the right until some of the keyframes disappear (this is expected).
  8. Undo.

Check the Keyframes dock to see that not all 4 keyframes are restored.

test20

Workaround:
Instead of Step 8, undo twice and redo once.
This operation restores all 4 keyframes.
test22

This workaround doesn’t work for other filters’ keyframes attached to the same clip.

Tested on Windows 11
Tested with Shotcut v25.01.25 and v25.03.29