mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 22:02:24 -06:00
[GH-ISSUE #85] Window closing itself and quitting app #53
Labels
No labels
bug
documentation
enhancement
libui issue
pull-request
question
wait for libui implementation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/proton-native#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mischnic on GitHub (Apr 27, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/85
How can I close a window and quit the whole app programatically?
Should this work? On macOS only the Window is closed (even though
lastWindowis true by default).Apart from that, a method to quit the app (similar to the current dialog functions) would make sense. (Why is it
Dialogand notdialog?)@kusti8 commented on GitHub (May 2, 2018):
You need to use the closed prop.
I made it a prop instead of a method because if you want to use multiple windows, it gets really ugly to try and track what window you're using (which is how I did it for dialog since it doesn't matter too much what the origin window is). I pushed a fix to make this correctly quit.
@mischnic commented on GitHub (May 16, 2018):
It would make sense, however, if
<Window closed={true}>wouldn't actually show that window.