-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
chat: add close to tray #3109
chat: add close to tray #3109
Conversation
Lemme know when this is ready to review by taking it out of draft and awesome first contribution! |
184e828
to
d46b511
Compare
The conditionals are a little bit trickier than I anticipated with the recursive close form on
With the tray:
Functionality can be built upon this, such as displaying a tray alert when generating something significant while the app is in the tray, etc... |
I see this error when I attempt to build your branch: -- Found QtIFW 4.5.2 version |
What command and flags are you using to compile? I'm unable to reproduce the issue. Have you started from a clean slate? I noticed that after changing the SingleApplication dependency, it was necessary to remove any old build artifacts completely. The Widget target should normally be handled in the back by SingleApplication. |
See: bgallois#1 |
Okay, the simplification is not working as expected, or at least it doesn't implement the same set of features: Feature Changes:
Bugs:
You are right that using |
I'm testing on linux. Right clicking only activates the menu for me for some reason. I will fix this pre-emptively by looking at the 'reason' arg in onActivated. The 'restore' can menu item can stay even if it is redundant as you can left click or middle click to restore.
I'll fix this.
Clicking 'Quit' does quit the program for me. You're testing on mac or windows? I'm on linux, so perhaps we have different behavior?
Without this I was getting build error. |
I'm also testing on Linux (and after a system restart and a clean build the program is now quitting correctly but not restored by left-click, so something is not stable). The build error is likely masking another error because it isn't logical and reproducible, and maybe it should be investigated more closely. Feel free to push directly to this branch to complete and close this PR with the features as you see fit. |
Unfortunately, I can't push directly to this PR as it is open on your fork I think. The widgets dependency I'll look into as I guess your thesis is that it should be handled by the SingleApplication cmake file? More concerning is the weird behavior on left click not working for you and right click not working for me... seems unstable. This is in "labs" and is it possible that the underlying Qt qml class is just buggy?? If so, we can't add it yet... |
I allowed "Allow edits by maintainers" so you should be able to push on it.
Yes, like it was the case before with the Gui dependency necessary for the QGuiApplication.
Maybe it is better to implement it with the |
Signed-off-by: bgallois <[email protected]>
Signed-off-by: bgallois <[email protected]>
Signed-off-by: Adam Treat <[email protected]>
…store on specific activation reason. Signed-off-by: Adam Treat <[email protected]>
…deps. Signed-off-by: Adam Treat <[email protected]>
@bgallois can you test the latest version I just pushed and review to see if you're happy with it? |
It is working perfectly for me. |
Signed-off-by: Adam Treat <[email protected]>
Signed-off-by: Adam Treat <[email protected]>
…ry on windows. Signed-off-by: Adam Treat <[email protected]>
Signed-off-by: Adam Treat <[email protected]>
There are some inconsistencies and problems across the three platforms i'm testing on now: linux, windows, and macos. Trying to resolve them all... but still no dice. |
Signed-off-by: Adam Treat <[email protected]>
Signed-off-by: Adam Treat <[email protected]>
Signed-off-by: Adam Treat <[email protected]>
As suggested in issue #2844, added the option to close to the tray: