fix osx libcurl link

This commit is contained in:
2018-08-25 14:13:53 +02:00
parent ddd699166f
commit e8138c26ef
3 changed files with 8 additions and 7 deletions

View File

@@ -51,7 +51,8 @@ void App::pick_image(std::function<void(std::string path)> callback)
#elif __OSX__
dispatch_async(dispatch_get_main_queue(), ^{
std::string path = [osx_view pick_file];
callback(path);
if (!path.empty())
callback(path);
});
#elif __ANDROID__
//displayKeyboard(and_app, false);