fix recurseve mutex on Android

This commit is contained in:
2018-12-15 16:35:37 +01:00
parent 188e2336cc
commit 9d13087036
2 changed files with 7 additions and 2 deletions

View File

@@ -388,6 +388,7 @@ void App::init_menu_file()
b->on_click = [this](Node*) {
App::I.pick_image([this](std::string path){
Image img;
async_start();
img.load_file(path);
if (img.width == img.height / 6 || img.width == img.height * 2)
{
@@ -400,6 +401,8 @@ void App::init_menu_file()
m->m_source_image = std::move(img);
Canvas::set_mode(Canvas::kCanvasMode::Transform);
}
async_redraw();
async_end();
});
popup->mouse_release();
popup->destroy();