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

@@ -7,6 +7,8 @@ extern HWND hWnd;
extern std::deque<std::packaged_task<void()>> main_tasklist;
extern std::mutex main_task_mutex;
void destroy_window();
namespace {
void show_cursor(bool visible)
@@ -176,6 +178,11 @@ public:
(void)path;
}
void request_app_close() override
{
destroy_window();
}
void pick_image(pp::platform::PickedPathCallback callback) override
{
const std::string path = open_file("Image Files (*.jpg, *.png)\0*.jpg;*.png");