|
|
|
|
|
by ksherlock
381 days ago
|
|
Electron doesn't seem to support it (and even if it did, I suspect most electron developers wouldn't pay it any mind) but... NSApplicationDelegate's -(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender; method exists so an application can, uhh, automatically terminate after the last window closes. https://developer.apple.com/documentation/appkit/nsapplicati... It's not 100% consistent but if you look at Apple's applications based on single window (calculator, system preferences, etc), closing the window quits the app. |
|