diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-26 22:34:35 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-26 22:34:35 +0200 |
| commit | d40d196a777666206f39094c39956bb654b9b64c (patch) | |
| tree | ca98806117ac68198554897e0dd51a68eef41915 /src | |
| parent | 8fcadb1b9b2afc4994e03377105b92cae4eb54a1 (diff) | |
Allow branding of "report a problem" dialog.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/variant.cc | 7 | ||||
| -rw-r--r-- | src/lib/variant.h | 1 | ||||
| -rw-r--r-- | src/tools/dcpomatic.cc | 4 | ||||
| -rw-r--r-- | src/tools/dcpomatic_kdm.cc | 4 | ||||
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 4 |
5 files changed, 17 insertions, 3 deletions
diff --git a/src/lib/variant.cc b/src/lib/variant.cc index f1c2af17b..00e9ab991 100644 --- a/src/lib/variant.cc +++ b/src/lib/variant.cc @@ -40,6 +40,7 @@ static char const* _report_problem_email = "carl@dcpomatic.com"; static bool const _show_tagline = true; static bool const _show_dcpomatic_website = true; +static bool const _show_report_a_problem = false; std::string @@ -150,6 +151,12 @@ variant::show_dcpomatic_website() return _show_dcpomatic_website; } +bool +variant::show_report_a_problem() +{ + return _show_report_a_problem; +} + std::string variant::report_problem_email() { diff --git a/src/lib/variant.h b/src/lib/variant.h index 87fbaa84d..2738f16fc 100644 --- a/src/lib/variant.h +++ b/src/lib/variant.h @@ -48,6 +48,7 @@ std::string report_problem_email(); bool show_tagline(); bool show_dcpomatic_website(); +bool show_report_a_problem(); } diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index a1b2cf750..1c43d8a07 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1454,7 +1454,9 @@ private: #else add_item (help, _("About"), wxID_ABOUT, ALWAYS); #endif - add_item (help, _("Report a problem..."), ID_help_report_a_problem, NEEDS_FILM); + if (variant::show_report_a_problem()) { + add_item(help, _("Report a problem..."), ID_help_report_a_problem, NEEDS_FILM); + } m->Append (_file_menu, _("&File")); m->Append (edit, _("&Edit")); diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc index b333f5327..6f8c3c71e 100644 --- a/src/tools/dcpomatic_kdm.cc +++ b/src/tools/dcpomatic_kdm.cc @@ -309,7 +309,9 @@ private: #else help->Append (wxID_ABOUT, _("About")); #endif - help->Append (ID_help_report_a_problem, _("Report a problem...")); + if (variant::show_report_a_problem()) { + help->Append(ID_help_report_a_problem, _("Report a problem...")); + } m->Append (file, _("&File")); #ifndef __WXOSX__ diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index b877f10cd..d3b998b55 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -617,7 +617,9 @@ private: #else help->Append (wxID_ABOUT, _("About")); #endif - help->Append (ID_help_report_a_problem, _("Report a problem...")); + if (variant::show_report_a_problem()) { + help->Append(ID_help_report_a_problem, _("Report a problem...")); + } m->Append (_file_menu, _("&File")); if (!Config::instance()->player_restricted_menus()) { |
