summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-02-22 14:52:49 +0100
committerCarl Hetherington <cth@carlh.net>2025-02-22 14:52:49 +0100
commit596963e5474eddf9fc67c67e3ffcad4e28dc04c0 (patch)
treed7883704b1cb240858ea04b76a197a64affab2ef
parentaef91e8abb7a7c02664ccde4d5a6ed04d7e79e19 (diff)
Add player debug checkbox to player preferences.
-rw-r--r--src/wx/player_config_dialog.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wx/player_config_dialog.cc b/src/wx/player_config_dialog.cc
index 6ac67f9fe..a7ce72ac2 100644
--- a/src/wx/player_config_dialog.cc
+++ b/src/wx/player_config_dialog.cc
@@ -309,6 +309,8 @@ private:
t->Add(_log_timing, 1, wxEXPAND | wxALL);
_log_debug_video_view = new CheckBox(_panel, _("Debug: video view"));
t->Add(_log_debug_video_view, 1, wxEXPAND | wxALL);
+ _log_debug_player = new CheckBox(_panel, _("Debug: player"));
+ t->Add(_log_debug_player, 1, wxEXPAND | wxALL);
table->Add(t, 0, wxALL, 6);
}
@@ -323,6 +325,7 @@ private:
_log_error->bind(&PlayerAdvancedPage::log_changed, this);
_log_timing->bind(&PlayerAdvancedPage::log_changed, this);
_log_debug_video_view->bind(&PlayerAdvancedPage::log_changed, this);
+ _log_debug_player->bind(&PlayerAdvancedPage::log_changed, this);
#ifdef DCPOMATIC_WINDOWS
_win32_console->bind(&PlayerAdvancedPage::win32_console_changed, this);
#endif
@@ -337,6 +340,7 @@ private:
checked_set(_log_error, config->log_types() & LogEntry::TYPE_ERROR);
checked_set(_log_timing, config->log_types() & LogEntry::TYPE_TIMING);
checked_set(_log_debug_video_view, config->log_types() & LogEntry::TYPE_DEBUG_VIDEO_VIEW);
+ checked_set(_log_debug_player, config->log_types() & LogEntry::TYPE_DEBUG_PLAYER);
#ifdef DCPOMATIC_WINDOWS
checked_set(_win32_console, config->win32_console());
#endif
@@ -360,6 +364,9 @@ private:
if (_log_debug_video_view->GetValue()) {
types |= LogEntry::TYPE_DEBUG_VIDEO_VIEW;
}
+ if (_log_debug_player->GetValue()) {
+ types |= LogEntry::TYPE_DEBUG_PLAYER;
+ }
Config::instance()->set_log_types(types);
}
@@ -375,6 +382,7 @@ private:
CheckBox* _log_error = nullptr;
CheckBox* _log_timing = nullptr;
CheckBox* _log_debug_video_view = nullptr;
+ CheckBox* _log_debug_player = nullptr;
#ifdef DCPOMATIC_WINDOWS
CheckBox* _win32_console = nullptr;
#endif