-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Improvement] Hide to tray upon closing #93
Comments
There is currently no API for hiding taskbar icons on platforms other than mac. |
The app is moved to tray with hide option, and disappear from taskbar, so the API is available. |
The hidden window is the main process of the chatgpt app, and if it exits, the app will exit. |
It doesn't need to exit, it's a common standard for many Windows apps to stay only in tray (ex. Telegram, Caprine, Discord, Skype, Slack). They are handling the close button behavior differently than default app exit action. |
But none of them are based on tauri implementation. I am not currently able to solve the problem you describe, you can tell me by checking the tauri documentation, I would be happy to implement this feature. |
This may be helpful. It appears that you can attach hiding main window + tray on exit. |
That's how it's handled now, and it's not the problem you want to solve. https://github.com/lencx/ChatGPT/blob/main/src-tauri/src/main.rs#L77-L91 |
Also https://tauri.app/v1/guides/features/system-tray/ We have both:
What was requested is handling [x] like in 2. |
You can hide the window in 2, but you cannot remove it from the taskbar. |
The (2) option is removing from taskbar. |
Removing it from the taskbar will kill the program. |
No, the program is still running, and can be opened from tray. |
I see what you're saying, it's hidden on windows, but it won't work on mac. The tray opens the tray window, which is two different windows from the main window. And how do I redisplay the main window? |
Can't the Hide (ctrl+h) not be the X for closing? Cause this is quite annoying as it is now. |
You can now tap [x] to exit the application ( |
This doesn't work. Well it does, but it closes the whole process, so even the tray icon is closed. |
+1, close button only hides the main window, but on Windows most of the times expected behavior is to close GUI window, but keep the tray process. Would be really amazing to have a behavior like that. |
ChatGPT isn't used constantly, but mostly when required, so having it in tray instead of taskbar would be the more comfortable option.
Could you add an option which makes hiding in tray when clicking close button, as an option?
There's a option now to hide, but it's in menu, means more user actions is needed.
The text was updated successfully, but these errors were encountered: