| 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)); |
nothing calls this directly
no test coverage detected