-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore WindowState when activating #10119
Restore WindowState when activating #10119
Conversation
This does feel like a hack... |
It certainly is (both WIP and draft), I could not find the core issue. I assume this is something in .NET. But this is so annoying, if there is no other solution I want to include this (will use it in my private builds). |
If this is addressing the issue - let's take it
|
For me it is and I am using it. For the 4.0 alpha, at least a trace printout should be added. It may be good to find how many users that experience the problem. |
0785859
to
1e4a5c3
Compare
I added a Trace printout and a comment (as well as commit message update). |
When this "correction" kicks in, GE is restored also if it was maximized prior to the minimize. It is a little unexpected. |
more than unexpected -- and occurs several times a day in contrast to #9752, which I cannot reproduce. Though when trying your steps to reproduce, I noticed that the window positions are not stored correctly when closed minimized, at least the maximized state. |
Then you may have some part of the problem, but Minimized is changed later?
seem reasonable |
Maybe the state can be saved when minimizing, I have not found the win call for this
I do not see this. When saving in Minimized or Maximized state, the RestoreBounds are used, which are OK for me. |
Changed behavior from .NET4 to .NET5, application requires explicit "restore" in Taskbar. This is a raw workaround with the minor annoyance that closing in taskbar requires application activation.
Changed behavior from .NET4 to .NET5, application requires explicit "restore" in Taskbar. This is a raw workaround with the minor annoyance that closing in taskbar requires application activation. The behavior is called by setting WorkaroundRestoreFromMinimize that must be manually set in GitExtensions.settings
1e4a5c3
to
900ef40
Compare
I did not find a reasonable way to get the status before it was minimized. %APPDATA%\GitExtensions\GitExtensions\GitExtensions.settings
Can we merge with this to get a new alpha/beta/rc soon? |
Changed behavior from .NET4 to .NET5, application requires explicit "restore" in Taskbar. This is a raw workaround with the minor annoyance that closing in taskbar requires application activation. The behavior is called by setting WorkaroundRestoreFromMinimize that must be manually set in GitExtensions.settings (cherry picked from commit 21c293d)
Add an experimental setting to not run git-ls-files when the window is minimized on activation, as async commands when minimized seem to block the app from being restored. Rename configuration added in gitextensions#10119 to deactivate at upgrade as this setting may give a negative experience after gitextensions#10802 mostly fixes the problem.
Add an experimental setting to not run git-ls-files when the window is minimized on activation, as async commands when minimized seem to block the app from being restored. Rename configuration added in gitextensions#10119 to deactivate at upgrade as this setting may give a negative experience after gitextensions#10802 mostly fixes the problem.
Add an experimental setting to not run git-ls-files when the window is minimized on activation, as async commands when minimized seem to block the app from being restored. Rename configuration added in #10119 to deactivate at upgrade as this setting may give a negative experience after #10802 mostly fixes the problem.
Fixes #9752
Proposed changes
This is a fix, probably not the correct solution, added for review.
Occasionally when restoring GE from minimized, the app fail to stay open.
One drawback with the fix is that rightclick to close on the minature in the taskbar requires that the app is not minimized. OK to select the cross.
Test methodology
Manual
Merge strategy
I agree that the maintainer squash merge this PR (if the commit message is clear).
✒️ I contribute this code under The Developer Certificate of Origin.