13
0

Add preference to opt-out of new version checks

Windows and macOS users don't have an easy way to disable this
otherwise (commandline option or edit URLs in the config, or
compile without PHONE_HOME support).

It's all the rage currently.
This commit is contained in:
Robin Gareus 2021-07-06 02:08:56 +02:00
parent 13f5fb3dee
commit 11932af65e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 28 additions and 1 deletions

View File

@ -73,6 +73,7 @@
#include "plugin_scan_dialog.h"
#include "public_editor.h"
#include "splash.h"
#include "ui_config.h"
#include "pbd/i18n.h"
@ -504,7 +505,11 @@ ARDOUR_UI::starting ()
app->ShouldLoad.connect (sigc::mem_fun (*this, &ARDOUR_UI::load_from_application_api));
if (ARDOUR_COMMAND_LINE::check_announcements) {
if (ARDOUR_COMMAND_LINE::check_announcements
#ifndef MIXBUS
&& UIConfiguration::instance().get_check_announcements ()
#endif
) {
check_announcements ();
}

View File

@ -2384,6 +2384,27 @@ RCOptionEditor::RCOptionEditor ()
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_save_export_mixer_screenshot)
));
#if defined PHONE_HOME && !defined MIXBUS
add_option (_("General"), new OptionEditorHeading (_("New Version Check")));
bo = new BoolOption (
"check-announcements",
_("Check for announcements at application start"),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_check_announcements),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_check_announcements)
);
bo ->set_note (string_compose (_("An anomized request is performed to query announcements by contacting\n%1"),
#ifdef __APPLE__
Config->get_osx_pingback_url ()
#elif defined PLATFORM_WINDOWS
Config->get_windows_pingback_url ()
#else
Config->get_linux_pingback_url ()
#endif
));
add_option (_("General"), bo);
#endif
/* APPEARANCE ***************************************************************/
if (!ARDOUR::Profile->get_mixbus()) {

View File

@ -115,6 +115,7 @@ UI_CONFIG_VARIABLE (bool, prefer_inline_over_gui, "prefer-inline-over-gui", true
UI_CONFIG_VARIABLE (uint32_t, max_inline_controls, "max-inline-controls", 32) /* per processor */
UI_CONFIG_VARIABLE (uint32_t, action_table_columns, "action-table-columns", 3)
UI_CONFIG_VARIABLE (bool, hide_splash_screen, "hide-splash-screen", false)
UI_CONFIG_VARIABLE (bool, check_announcements, "check-announcements,", true)
UI_CONFIG_VARIABLE (bool, use_wm_visibility, "use-wm-visibility", true)
UI_CONFIG_VARIABLE (std::string, stripable_color_palette, "stripable-color-palette", "#AA3939:#FFAAAA:#D46A6A:#801515:#550000:#AA8E39:#FFEAAA:#D4BA6A:#806515:#554000:#343477:#8080B3:#565695:#1A1A59:#09093B:#2D882D:#88CC88:#55AA55:#116611:#004400") /* Gtk::ColorSelection::palette_to_string */
UI_CONFIG_VARIABLE (bool, use_note_bars_for_velocity, "use-note-bars-for-velocity", true)