-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow adding a destructive, or realtime, effect which has been deleted since application start up. #3801
Disallow adding a destructive, or realtime, effect which has been deleted since application start up. #3801
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dialog message text needs translation
d90a5b4
to
7e6dfad
Compare
7e6dfad
to
a8777ea
Compare
src/RealtimeEffectPanel.cpp
Outdated
return; | ||
|
||
if(!PluginManager::IsPluginAvailable(*plug)) { | ||
wxMessageBox(_("This plugin could not be loaded.\nIt may have been deleted."), _("Plugin Error")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ::AudacityMessageBox
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced wxMessageBox with BasicUI::ShowMessageBox as suggested below.
src/effects/EffectUI.cpp
Outdated
@@ -1231,6 +1231,12 @@ DialogFactoryResults EffectUI::DialogFactory(wxWindow &parent, | |||
if (!plug) | |||
return false; | |||
|
|||
if (!PluginManager::IsPluginAvailable(*plug)) | |||
{ | |||
wxMessageBox(_("This plugin could not be loaded.\nIt may have been deleted."), _("Plugin Error")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ::AudacityMessageBox
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or better, use BasicUI::ShowMessageBox in both places.
a8777ea
to
7d8ba28
Compare
7d8ba28
to
13bd133
Compare
13bd133
to
ac75f13
Compare
src/menus/FileMenus.cpp
Outdated
BasicUI::ShowMessageBox( | ||
XO("This project contains some plugins that cannot be found on the system."), | ||
BasicUI::MessageBoxOptions() | ||
.Caption(XO("Project Error"))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do
Window title: Missing Plugins
This project contains some realtime effect plugins that cannot be found on this system.
The project may sound different than intended. Learn more
[OK]
with the "learn more" having an accessible link to https://audacityteam.org/errors#missing-plugins
bfd6cbf
to
5300bae
Compare
5300bae
to
34f95a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few suggestions to improve it, but nothing that should block it.
34f95a5
to
1cafa45
Compare
... been deleted to stop a protential crash.
1cafa45
to
bdfd848
Compare
Resolves: #3719 #3817
(short description of the changes and the motivation to make the changes)
Recommended: