summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-23 00:05:47 +0100
committerRobin Gareus <robin@gareus.org>2015-03-23 00:05:47 +0100
commit91405a1b2fb0329bc79ea30be27c3e4241927637 (patch)
treedfda825355eca42335a3b6456cd866b3a9eae6a3 /gtk2_ardour/plugin_ui.cc
parentd9655f6d64ba7def84831d556e4152438c5a28ea (diff)
consolidate plugin freebie messages, fix #6151
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r--gtk2_ardour/plugin_ui.cc25
1 files changed, 16 insertions, 9 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc
index 76efb71f1f..ea9dfaec75 100644
--- a/gtk2_ardour/plugin_ui.cc
+++ b/gtk2_ardour/plugin_ui.cc
@@ -560,6 +560,19 @@ 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
@@ -586,10 +599,8 @@ PlugUIBase::add_plugin_setting ()
}
#else
if (!seen_saving_message) {
- info << string_compose (_("Plugin presets are not supported in this build of %1. Consider paying for a full version"),
- PROGRAM_NAME)
- << endmsg;
seen_saving_message = true;
+ show_no_plugin_message();
}
#endif
}
@@ -606,10 +617,8 @@ PlugUIBase::save_plugin_setting ()
}
#else
if (!seen_saving_message) {
- info << string_compose (_("Plugin presets are not supported in this build of %1. Consider paying for a newer version"),
- PROGRAM_NAME)
- << endmsg;
seen_saving_message = true;
+ show_no_plugin_message();
}
#endif
}
@@ -621,10 +630,8 @@ PlugUIBase::delete_plugin_setting ()
plugin->remove_preset (_preset_combo.get_text ());
#else
if (!seen_saving_message) {
- info << string_compose (_("Plugin presets are not supported in this build of %1. Consider paying for a newer version"),
- PROGRAM_NAME)
- << endmsg;
seen_saving_message = true;
+ show_no_plugin_message();
}
#endif
}