mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 23:25:52 +03:00
[GH-ISSUE #372] Recent change in ApplicationViewModel closes the app with error 2 #1677
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#1677
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?
Originally created by @vmrocha on GitHub (Aug 10, 2018).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/372
Originally assigned to: @NickeManarin on GitHub.
There is a recent change in the ApplicationViewModel file that is checking if the current window is loaded; if not, it closes the application. This is preventing the editor from opening on my computer.
Previous code:
New code:
I believe that change should be reverted.
Commit:
github.com/vmrocha/ScreenToGif@3e0076a875@NickeManarin commented on GitHub (Aug 10, 2018):
Thank you for finding it out what is happening!
In a few hours, I'll release a new version with this fix.
(v2.14.1)
@NickeManarin commented on GitHub (Aug 10, 2018):
I got a feedback from another user that has a Windows 7 machine with the same problem.
I could not get to reproduce this bug with my computer (with Windows 10).
@vmrocha commented on GitHub (Aug 10, 2018):
I'm running Windows 10.
I believe that the person who wrote the new code wanted to check if the window that loaded had no content. On my computer, the Editor window has content, but it didn't finish loading yet.
@spietras commented on GitHub (Aug 10, 2018):
I changed that code because in my case (Windows 10) the app didn't close even after all windows were closed. Why? Because there actually were abstract windows (like Adorner): they don't have content.
I think the best solution would be to change
window => window.IsLoaded && window.HasContentto justwindow => window.HasContent. I can't test that now, but I think it makes sense.@vmrocha commented on GitHub (Aug 10, 2018):
Changing the code to:
fixed the issue on my computer.
Window Version: 10.0.16299 Build 16299
.NET Framework Version installed: 4.7.02556