mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-23 22:26:54 +03:00
feat(app): send close event when mac app should quit
This commit is contained in:
1 parent
a50d945be0
commit
d90000d0f2
1 file changed
+2
-2
@@ -1,5 +1,6 @@
|
|||||||
#include "app/mac/MainApp.h"
|
#include "app/mac/MainApp.h"
|
||||||
#include "event/Event.hpp"
|
#include "event/Event.hpp"
|
||||||
|
#include "event/Input.hpp"
|
||||||
#include "event/Scheduler.hpp"
|
#include "event/Scheduler.hpp"
|
||||||
#include "os/Compat.hpp"
|
#include "os/Compat.hpp"
|
||||||
|
|
||||||
@@ -29,8 +30,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender {
|
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender {
|
||||||
// TODO
|
OsQueuePut(OS_INPUT_CLOSE, 0, 0, 0, 0);
|
||||||
// OsQueuePut(5, 0, 0, 0, 0);
|
|
||||||
|
|
||||||
return NSTerminateCancel;
|
return NSTerminateCancel;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user