MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / onAction

Method onAction

plugins/Cardinal/src/AIDA-X.cpp:1075–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1073 }
1074
1075 void onAction(const event::Action&) override
1076 {
1077 AidaPluginModule* const module = this->module;
1078 async_dialog_filebrowser(false, nullptr, nullptr, text.c_str(), [module](char* path)
1079 {
1080 if (path == nullptr)
1081 return;
1082
1083 module->currentFile = path;
1084 module->fileChanged = true;
1085 module->loadModelFromFile(path, true);
1086 std::free(path);
1087 });
1088 }
1089 };
1090
1091 menu->addChild(new LoadModelFileItem(module));

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
loadModelFromFileMethod · 0.80
async_dialog_filebrowserFunction · 0.50

Tested by

no test coverage detected