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

gpui: Fix hide, activate method on Windows to hide/show application #18164

Merged
merged 5 commits into from
Oct 1, 2024

Conversation

huacnlee
Copy link
Contributor

@huacnlee huacnlee commented Sep 20, 2024

Release Notes:

  • N/A

Continue #18161 to fix cx.hide, cx.activate method on Windows to hide/show application.

After

hide.app.2024-09-21.034539.mp4

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Sep 20, 2024
@huacnlee huacnlee changed the title windows: Fix hide, activate on Windows to hide/show application gpui: Fix hide, activate method on Windows to hide/show application Sep 20, 2024
Copy link
Contributor

@mikayla-maki mikayla-maki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR should wait until #18161 is merged, then we can rebase and merge this one :D

@huacnlee
Copy link
Contributor Author

huacnlee commented Oct 1, 2024

This is ready to merge unlit #18161 merged, it has #18161 difference code

@mikayla-maki
Copy link
Contributor

Thank you!

@mikayla-maki mikayla-maki merged commit 72be8c5 into zed-industries:main Oct 1, 2024
9 checks passed
@huacnlee huacnlee deleted the fix-hide-on-windows branch October 1, 2024 07:06
SomeoneToIgnore pushed a commit that referenced this pull request Oct 1, 2024
…w application" (#18571)

This PR reverts the changes introduced via #18164. As shown in the video
below, once you `hide` the app, there is essentially no way to bring it
back. I must emphasize that the window logic on Windows is entirely
different from macOS. On macOS, when you `hide` an app, its icon always
remains visible in the dock, and you can always bring the hidden app
back by clicking that icon. However, on Windows, there is no such
mechanism—the app is literally hidden.

I think the `hide` feature should be macOS-only.



https://github.com/user-attachments/assets/65c8a007-eedb-4444-9499-787b50f2d1e9



Release Notes:

- N/A
noaccOS pushed a commit to noaccOS/zed that referenced this pull request Oct 19, 2024
…on (zed-industries#18164)

Release Notes:

- N/A

Continue zed-industries#18161 to fix `cx.hide`, `cx.activate` method on Windows to
hide/show application.

## After


https://github.com/user-attachments/assets/fe0070f9-7844-4c2a-b859-3e22ee4b8d22

---------

Co-authored-by: Mikayla Maki <[email protected]>
noaccOS pushed a commit to noaccOS/zed that referenced this pull request Oct 19, 2024
…w application" (zed-industries#18571)

This PR reverts the changes introduced via zed-industries#18164. As shown in the video
below, once you `hide` the app, there is essentially no way to bring it
back. I must emphasize that the window logic on Windows is entirely
different from macOS. On macOS, when you `hide` an app, its icon always
remains visible in the dock, and you can always bring the hidden app
back by clicking that icon. However, on Windows, there is no such
mechanism—the app is literally hidden.

I think the `hide` feature should be macOS-only.



https://github.com/user-attachments/assets/65c8a007-eedb-4444-9499-787b50f2d1e9



Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants