Route native close through platform services
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user