summaryrefslogtreecommitdiff
path: root/src/wx/general_preferences_page.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-11-30 23:45:20 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-01 00:54:39 +0100
commit42d11b68812108ccda802d0ff950b5299d08e40a (patch)
treec67b5fad9af6148d722aef9770971466cc0ca54c /src/wx/general_preferences_page.cc
parente30a2d522f0a5e29ed13254e8cac0c0b3e91cedc (diff)
Add sentry crash reporting on Windows.sentry
Diffstat (limited to 'src/wx/general_preferences_page.cc')
-rw-r--r--src/wx/general_preferences_page.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/wx/general_preferences_page.cc b/src/wx/general_preferences_page.cc
index beed9012f..2404289e2 100644
--- a/src/wx/general_preferences_page.cc
+++ b/src/wx/general_preferences_page.cc
@@ -205,6 +205,27 @@ GeneralPage::add_update_controls(wxGridBagSizer* table, int& r)
_check_for_test_updates->bind(&GeneralPage::check_for_test_updates_changed, this);
}
+
+#ifdef DCPOMATIC_SENTRY
+void
+GeneralPage::add_crash_reporting_controls(wxGridBagSizer* table, int& r)
+{
+ _enable_crash_reporting = new CheckBox(_panel, _("Automatically upload crash reports"));
+ table->Add(_enable_crash_reporting, wxGBPosition(r, 0), wxGBSpan(1, 2));
+ ++r;
+
+ _enable_crash_reporting->bind(&GeneralPage::enable_crash_reporting_changed, this);
+}
+
+
+void
+GeneralPage::enable_crash_reporting_changed()
+{
+ Config::instance()->set_enable_crash_reporting(_enable_crash_reporting->get());
+}
+#endif
+
+
void
GeneralPage::config_changed()
{