summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-09-29 10:00:23 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-10-02 18:04:40 -0600
commitf470d3e856e7dee3c6003aeff0c98005822c5f90 (patch)
tree20b9f2d212195a2a7f04442e4365d6715e05e385 /gtk2_ardour/plugin_ui.cc
parentbc3b65834991b126843e85618c2f5d1d3c7e9389 (diff)
remove all use of NO_PLUGIN_STATE #ifdef
We determined several years that we should never ever do this, and changed the basis for the free/demo copy because of that.
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r--gtk2_ardour/plugin_ui.cc38
1 files changed, 0 insertions, 38 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc
index c60214c5a4..a5962c140f 100644
--- a/gtk2_ardour/plugin_ui.cc
+++ b/gtk2_ardour/plugin_ui.cc
@@ -633,27 +633,9 @@ PlugUIBase::preset_selected (Plugin::PresetRecord preset)
}
}
-#ifdef NO_PLUGIN_STATE
-static bool seen_saving_message = false;
-
-static void show_no_plugin_message()
-{
- info << string_compose (_("Plugin presets are not supported in this build of %1. Consider paying for a full version"),
- PROGRAM_NAME)
- << endmsg;
- info << _("To get full access to updates without this limitation\n"
- "consider becoming a subscriber for a low cost every month.")
- << endmsg;
- info << X_("https://community.ardour.org/s/subscribe")
- << endmsg;
- ARDOUR_UI::instance()->popup_error(_("Plugin presets are not supported in this build, see the Log window for more information."));
-}
-#endif
-
void
PlugUIBase::add_plugin_setting ()
{
-#ifndef NO_PLUGIN_STATE
NewPluginPresetDialog d (plugin, _("New Preset"));
switch (d.run ()) {
@@ -672,43 +654,23 @@ PlugUIBase::add_plugin_setting ()
}
break;
}
-#else
- if (!seen_saving_message) {
- seen_saving_message = true;
- show_no_plugin_message();
- }
-#endif
}
void
PlugUIBase::save_plugin_setting ()
{
-#ifndef NO_PLUGIN_STATE
string const name = _preset_combo.get_text ();
plugin->remove_preset (name);
Plugin::PresetRecord const r = plugin->save_preset (name);
if (!r.uri.empty ()) {
plugin->load_preset (r);
}
-#else
- if (!seen_saving_message) {
- seen_saving_message = true;
- show_no_plugin_message();
- }
-#endif
}
void
PlugUIBase::delete_plugin_setting ()
{
-#ifndef NO_PLUGIN_STATE
plugin->remove_preset (_preset_combo.get_text ());
-#else
- if (!seen_saving_message) {
- seen_saving_message = true;
- show_no_plugin_message();
- }
-#endif
}
void