fix recurseve mutex on Android
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user