decouple renderer/events on mac
This commit is contained in:
@@ -49,8 +49,10 @@ void App::pick_image(std::function<void(std::string path)> callback)
|
||||
#ifdef __IOS__
|
||||
[ios_view pick_photo:callback];
|
||||
#elif __OSX__
|
||||
std::string path = [osx_view pick_file];
|
||||
callback(path);
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
std::string path = [osx_view pick_file];
|
||||
callback(path);
|
||||
});
|
||||
#elif __ANDROID__
|
||||
//displayKeyboard(and_app, false);
|
||||
#elif _WIN32
|
||||
|
||||
Reference in New Issue
Block a user