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
|
private async void CancelButton_Click(object sender, RoutedEventArgs e) |
|
{ |
|
await _viewModel.Cancel(); |
|
|
|
DialogResult = false; |
|
} |
It looks like the if (IsLoaded) check is missing before setting DialogResult = false, now that Cancel() has been updated to async.
Describe the bug
App crashed when canceling video import.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Go back to Editor window.
Screenshots
Desktop (please complete the following information):
Additional context
ScreenToGif/ScreenToGif/Windows/Other/VideoSource.xaml.cs
Lines 109 to 114 in 7432dcb
It looks like the
if (IsLoaded)check is missing before settingDialogResult = false, now thatCancel()has been updated to async.