Skip to content
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

Use WinForms API to check for minimized #10088

Merged

Conversation

gerhardol
Copy link
Member

Proposed changes

Use WinForms API instead of native calls to check if the application is minimized.
This is used by GitStatusMonitor to skip updates for minimized instances as git-status can use quite some CPU/IO resources.
(The taskbar quick button is then greyed out.)
image

The intention with the changes was to investigate if the native calls for some reason was involved in the problem seen in #9752, which does not seem to be the case.
(I wrote this originally, did not know about the WinForms API at that time.)

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.

@ghost ghost assigned gerhardol Jul 26, 2022
@gerhardol gerhardol merged commit 35e75c5 into gitextensions:master Jul 27, 2022
@gerhardol gerhardol deleted the feature/i9752-minimize-restore branch July 27, 2022 20:36
@ghost ghost added this to the vNext milestone Jul 27, 2022
RussKie pushed a commit that referenced this pull request Jul 28, 2022
@RussKie RussKie modified the milestones: vNext, 4.0.0 Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants