mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 23:25:52 +03:00
[PR #883] [MERGED] Fix exception when pressing cancel while inserting frames is ongoing #1244
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#1244
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/NickeManarin/ScreenToGif/pull/883
Author: @pawlos
Created: 5/7/2021
Status: ✅ Merged
Merged: 5/8/2021
Merged by: @NickeManarin
Base:
bugfix/883-Exception-when-cancelling-image-import← Head:exception-when-closing-starter-insert-task📝 Commits (2)
92ade86Merge branch 'dev'3a4aa57Fix exception when pressing cancel while inserting frames is ongoing📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
ScreenToGif/Windows/Other/Insert.xaml(+1 -1)📄 Description
When testing #882 I've noticed that there is possibility to can close an ongoing import process, but when doing so, exception occurs. The problem is in
DialogResultbeing set when it supposed to be not.Steps to repro:
The problem was that
DialogResultwas set in code but alsoCancelButtonhadIsCancelproperty set totrue. With that property it meansDialogResultis set automatically and actually already getting out ofShowDialog()even the code is still running in the handlers . RemovedIsCancelproperty and allowed the code to setDialogResultand close the window when needed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.