[Bug] App crashed when canceling video import
Author: fz0000Created Aug 2, 2026Updated Aug 2, 2026
Labels🔷 Bug 🐛⬜ Pending
Describe the bug App crashed when canceling video import.
To Reproduce Steps to reproduce the behavior:
- Go to Editor.
- Click on File -> Load and select any video file.
- Click Cancel button on "Import frames from video" dialog
- See error
Expected behavior Go back to Editor window.
Screenshots
Desktop (please complete the following information):
- OS: [e.g. Windows 11]
- Version [e.g. 2.43.2]
Additional context https://github.com/NickeManarin/ScreenToGif/blob/7432dcb468dcdf4cd05efdce0f4d02ff6644f235/ScreenToGif/Windows/Other/VideoSource.xaml.cs#L109-L114
It looks like the if (IsLoaded) check is missing before setting DialogResult = false, now that Cancel() has been updated to async.
Source: NickeManarin/ScreenToGif