fix iOS save picker
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user