| 77 | } |
| 78 | |
| 79 | void IncompatiblePluginsDialog::SetPlugins(const std::vector<wxString>& plugins) |
| 80 | { |
| 81 | if (m_scanType == ScanType::Startup) |
| 82 | { |
| 83 | mText->SetLabelText(XO( |
| 84 | "Audacity has found %d incompatible plugins which could "\ |
| 85 | "not be loaded. We have disabled these plugins to avoid any "\ |
| 86 | "stalling or crashes. If you would still like to attempt "\ |
| 87 | "to use these plugins, you can enable them using "\ |
| 88 | "\"Manage Plugins\". Otherwise, select \"Continue\".") |
| 89 | .Format(static_cast<int>(plugins.size())).Translation()); |
| 90 | } |
| 91 | else |
| 92 | { |
| 93 | mText->SetLabelText(XO( |
| 94 | "Audacity has found %d incompatible plugins which could "\ |
| 95 | "not be loaded. We have disabled these plugins to avoid any "\ |
| 96 | "stalling or crashes.") |
| 97 | .Format(static_cast<int>(plugins.size())).Translation()); |
| 98 | } |
| 99 | mText->Wrap(GetClientSize().GetWidth() - 80); |
| 100 | |
| 101 | wxString pluginListText; |
| 102 | for(const auto& path : plugins) |
| 103 | pluginListText += path + "\n"; |
| 104 | |
| 105 | mPluginList->SetValue(pluginListText); |
| 106 | } |
| 107 | |
| 108 | void IncompatiblePluginsDialog::OnPluginManagerClicked(wxCommandEvent&) |
| 109 | { |
nothing calls this directly
no test coverage detected