MCPcopy Create free account
hub / github.com/audacity/audacity / SetPlugins

Method SetPlugins

src/IncompatiblePluginsDialog.cpp:79–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void 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
108void IncompatiblePluginsDialog::OnPluginManagerClicked(wxCommandEvent&)
109{

Callers

nothing calls this directly

Calls 5

TranslationMethod · 0.80
WrapMethod · 0.80
sizeMethod · 0.45
GetWidthMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected