Route native close through platform services

This commit is contained in:
2026-06-03 04:36:10 +02:00
parent 537f0dcb2f
commit 22006eaf47
10 changed files with 47 additions and 19 deletions

View File

@@ -205,6 +205,17 @@ public:
#endif
}
void request_app_close() override
{
#ifdef __OSX__
dispatch_async(dispatch_get_main_queue(), ^{
[App::I->osx_view close];
});
#elif __LINUX__
glfwSetWindowShouldClose(App::I->glfw_window, GLFW_TRUE);
#endif
}
void save_prepared_file(
std::string_view path,
std::string_view suggested_name,