| 379 | { |
| 380 | (void)system.load(library.definition.identity.identifier.view()); |
| 381 | } |
| 382 | if (library.dynamicLibrary.isValid()) |
| 383 | { |
| 384 | ImGui::SameLine(); |
| 385 | if (ImGui::Button("Unload")) |
| 386 | { |
| 387 | system.unload(library.definition.identity.identifier.view()); |
| 388 | } |
| 389 | } |
| 390 | ImGui::PopID(); |
| 391 | } |
| 392 | ImGui::EndTable(); |
| 393 | } |
| 394 | return Result(true); |
| 395 | } |
| 396 | |
| 397 | [[nodiscard]] bool drawToolbar() |
| 398 | { |
| 399 | bool res = false; |
| 400 | for (size_t idx = 0; idx < system.registry.getNumberOfEntries(); ++idx) |
| 401 | { |
| 402 | const PluginDynamicLibrary& library = system.registry.getPluginDynamicLibraryAt(idx); |
| 403 | ImGui::SameLine(); |
| 404 | |
| 405 | SmallString<256> pluginUTF8 = StringEncoding::Utf8; |
| 406 | (void)StringConverter::appendEncodingTo(StringEncoding::Utf8, library.definition.identity.name.view(), |
nothing calls this directly
no test coverage detected