Skip to content

Commit

Permalink
Removed advertisements
Browse files Browse the repository at this point in the history
Get more effects, Get AI effects
  • Loading branch information
RubisetCie committed Dec 2, 2024
1 parent e6ade9b commit 9852ae5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 33 deletions.
10 changes: 0 additions & 10 deletions src/PluginRegistrationDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ enum
ID_FilterCategory,
ID_List,
ID_Rescan,
ID_GetMoreEffects,
};

BEGIN_EVENT_TABLE(PluginRegistrationDialog, wxDialogWrapper)
EVT_BUTTON(wxID_OK, PluginRegistrationDialog::OnOK)
EVT_BUTTON(wxID_CANCEL, PluginRegistrationDialog::OnCancel)
EVT_BUTTON(ID_Rescan, PluginRegistrationDialog::OnRescan)
EVT_BUTTON(ID_GetMoreEffects, PluginRegistrationDialog::OnGetMoreEffects)
EVT_CHOICE(ID_FilterState, PluginRegistrationDialog::OnStateFilterValueChanged)
EVT_CHOICE(ID_FilterType, PluginRegistrationDialog::OnTypeFilterValueChanged)
EVT_CHOICE(ID_FilterCategory, PluginRegistrationDialog::OnCategoryFilterValueChanged)
Expand Down Expand Up @@ -203,9 +201,6 @@ void PluginRegistrationDialog::PopulateOrExchange(ShuttleGui &S)
{
S.AddSpace(Margin, 1);
S.Id(ID_Rescan).AddButton(XXO("&Rescan"));
#if defined(__WXMSW__) || defined(__WXMAC__)
S.Id(ID_GetMoreEffects).AddButton(XXO("&Get more effects..."));
#endif
S.AddSpace(1, 1, 1);

S.Id(wxID_OK).AddButton(XXO("&OK"));
Expand Down Expand Up @@ -342,11 +337,6 @@ void PluginRegistrationDialog::OnRescan(wxCommandEvent& WXUNUSED(evt))
});
}

void PluginRegistrationDialog::OnGetMoreEffects(wxCommandEvent& WXUNUSED(evt))
{
OpenInDefaultBrowser("https://www.audacityteam.org/mh-pluginmanager");
}

void PluginRegistrationDialog::OnOK(wxCommandEvent & WXUNUSED(evt))
{
auto result = ProgressResult::Success;
Expand Down
1 change: 0 additions & 1 deletion src/PluginRegistrationDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class PluginRegistrationDialog final : public wxDialogWrapper
void OnOK(wxCommandEvent & evt);
void OnCancel(wxCommandEvent & evt);
void OnRescan(wxCommandEvent & evt);
void OnGetMoreEffects(wxCommandEvent & evt);

wxArrayString mPluginProviderIDs;

Expand Down
6 changes: 0 additions & 6 deletions src/RealtimeEffectPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,12 @@ namespace

int commandId = wxID_NONE;

#if defined(__WXMSW__) || defined(__WXMAC__)
menu.AppendSeparator();
menu.Append(wxID_MORE, _("Get more effects..."));
#endif
menu.Bind(wxEVT_MENU, [&](wxCommandEvent evt) { commandId = evt.GetId(); });

if(parent->PopupMenu(&menu, parent->GetClientRect().GetLeftBottom()) && commandId != wxID_NONE)
{
if(commandId == wxID_REMOVE)
return wxString {};
if(commandId == wxID_MORE)
OpenInDefaultBrowser("https://www.audacityteam.org/mh-rtepanel");
else
return visitor.GetPluginID(commandId).GET();
}
Expand Down
16 changes: 0 additions & 16 deletions src/menus/PluginMenus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,22 +360,6 @@ auto EffectMenu()
Command(
wxT("AddRealtimeEffects"), XXO("Add Realtime Effects"),
OnAddRealtimeEffects, HasTrackFocusFlag(), wxT("E"))
#if defined(__WXMSW__) || defined(__WXMAC__)
, Command(
wxT("GetMoreEffects"), XXO("Get more effects..."),
[](const CommandContext&) {
OpenInDefaultBrowser("https://www.audacityteam.org/mh-effectmenu");
},
AlwaysEnabledFlag)
#endif
#if defined(__WXMSW__)
, Command(
wxT("GetAIEffects"), XXO("Get AI effects..."),
[](const CommandContext&) {
OpenInDefaultBrowser("https://audacityteam.org/download/openvino");
},
AlwaysEnabledFlag)
#endif
),
Section(
"RepeatLast",
Expand Down

0 comments on commit 9852ae5

Please sign in to comment.