Fix for hiding window on close

This commit is contained in:
Lea Anthony
2021-03-19 09:14:49 +11:00
parent 16debbd109
commit 7c0b236eb0

View File

@@ -270,7 +270,7 @@ void Hide(struct Application *app) {
if( app->shuttingDown ) return; if( app->shuttingDown ) return;
ON_MAIN_THREAD( ON_MAIN_THREAD(
msg(app->application, s("hide:")); msg(app->mainWindow, s("orderOut:"));
); );
} }
@@ -1237,12 +1237,12 @@ void createDelegate(struct Application *app) {
} }
bool windowShouldClose(id self, SEL cmd, id sender) { bool windowShouldClose(id self, SEL cmd, id sender) {
msg(sender, s("orderBack:")); msg(sender, s("orderOut:"));
return false; return false;
} }
bool windowShouldExit(id self, SEL cmd, id sender) { bool windowShouldExit(id self, SEL cmd, id sender) {
msg(sender, s("orderBack:")); msg(sender, s("orderOut:"));
messageFromWindowCallback("WC"); messageFromWindowCallback("WC");
return false; return false;
} }