Giter Club home page Giter Club logo

Comments (17)

lencx avatar lencx commented on May 23, 2024

There is currently no API for hiding taskbar icons on platforms other than mac.

from chatgpt.

AdamB2023 avatar AdamB2023 commented on May 23, 2024

The app is moved to tray with hide option, and disappear from taskbar, so the API is available.
Just the behavior of using a close button could be different from now, so the user would make fewer clicks to achieve it.

from chatgpt.

lencx avatar lencx commented on May 23, 2024

The hidden window is the main process of the chatgpt app, and if it exits, the app will exit.

from chatgpt.

AdamB2023 avatar AdamB2023 commented on May 23, 2024

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.

from chatgpt.

lencx avatar lencx commented on May 23, 2024

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.

from chatgpt.

AdamB2023 avatar AdamB2023 commented on May 23, 2024

This may be helpful. It appears that you can attach hiding main window + tray on exit.
tauri-apps/tauri#2684

from chatgpt.

lencx avatar lencx commented on May 23, 2024

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

from chatgpt.

AdamB2023 avatar AdamB2023 commented on May 23, 2024

Also https://tauri.app/v1/guides/features/system-tray/

We have both:

  1. Closing with [x] - it hides main window, but keep on taskbar
  2. ChatpGPT -> Hide (ctrl+H) - it hides main window, and remove from taskbar

What was requested is handling [x] like in 2.

from chatgpt.

lencx avatar lencx commented on May 23, 2024

You can hide the window in 2, but you cannot remove it from the taskbar.

from chatgpt.

AdamB2023 avatar AdamB2023 commented on May 23, 2024

The (2) option is removing from taskbar.
Video: https://dl.dropboxusercontent.com/s/5w4avalm5ehzzck/20221231_1672495193.mp4

from chatgpt.

lencx avatar lencx commented on May 23, 2024

Removing it from the taskbar will kill the program.

from chatgpt.

AdamB2023 avatar AdamB2023 commented on May 23, 2024

No, the program is still running, and can be opened from tray.
Vide: https://dl.dropboxusercontent.com/s/b9rvrpzkya1vewb/20221231_1672495290.mp4

from chatgpt.

lencx avatar lencx commented on May 23, 2024

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?

from chatgpt.

bokkoman avatar bokkoman commented on May 23, 2024

Can't the Hide (ctrl+h) not be the X for closing? Cause this is quite annoying as it is now.
The shortcut doesn't work for me, no idea why. But when I hide it, and then click the tray icon, it opens the window again together with the smaller tray window.

from chatgpt.

lencx avatar lencx commented on May 23, 2024

Can't the Hide (ctrl+h) not be the X for closing? Cause this is quite annoying as it is now. The shortcut doesn't work for me, no idea why. But when I hide it, and then click the tray icon, it opens the window again together with the smaller tray window.

You can now tap [x] to exit the application (Control Center -> Settings -> Main Window -> Close Exit).

from chatgpt.

bokkoman avatar bokkoman commented on May 23, 2024

This doesn't work. Well it does, but it closes the whole process, so even the tray icon is closed.

from chatgpt.

SnowPowerCore avatar SnowPowerCore commented on May 23, 2024

+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.

from chatgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.