fix iOS save picker

This commit is contained in:
2019-11-03 19:55:13 +01:00
parent ee94e0ad86
commit 83222c066b
5 changed files with 32 additions and 36 deletions

View File

@@ -624,11 +624,11 @@ void App::dialog_ppbr_export()
if (dialog->export_check)
info.export_data = dialog->export_check->checked;
#if __IOS__ || __WEB__
App::I->pick_file_save("ppbr",
App::I->pick_file_save("ppbr", "exported-brushes",
[this, dialog, info] (std::string path) {
presets->export_ppbr(path, info);
},
[dialog] (bool saved) {
[dialog] (const std::string& path, bool saved) {
if (saved)
dialog->destroy();
}
@@ -649,11 +649,11 @@ void App::dialog_ppbr_export()
void App::dialog_timelapse_export()
{
#if __IOS__ || __WEB__
pick_file_save("mp4",
pick_file_save("mp4", doc_name + "-timelapse",
[this](std::string path) {
rec_export(path);
},
[this](bool saved) {
[this](const std::string& path, bool saved) {
message_box("Export Timelapse", "Timelapse exported succesfully.");
}
);
@@ -837,4 +837,4 @@ void App::dialog_export_mp4()
pb->destroy();
}).detach();
}
}