Update for async API breaking change, adding default filename

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-07-06 23:39:50 +01:00
parent 26785f2d75
commit 4c326f5f39
23 changed files with 96 additions and 34 deletions

View file

@ -662,7 +662,7 @@ struct AudioFileWidget : ModuleWidgetWithSideScrews<23> {
void onAction(const event::Action&) override
{
CarlaInternalPluginModule* const module = this->module;
async_dialog_filebrowser(false, nullptr, text.c_str(), [module](char* path)
async_dialog_filebrowser(false, nullptr, nullptr, text.c_str(), [module](char* path)
{
if (path == nullptr)
return;

View file

@ -236,7 +236,7 @@ struct TextEditorLoadFileItem : MenuItem {
TextEditorModule* const module = this->module;;
WeakPtr<ImGuiTextEditor> widget = this->widget;
async_dialog_filebrowser(false, nullptr, text.c_str(), [module, widget](char* path)
async_dialog_filebrowser(false, nullptr, nullptr, text.c_str(), [module, widget](char* path)
{
if (path)
{