diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-16 01:44:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-16 21:33:29 +0100 |
| commit | 127bdaa2d8a869112fd6ec908cf115f391dbba24 (patch) | |
| tree | f1878f27421d80694e28b46f4d609ae51ebebc29 /src/wx/player_config_dialog.cc | |
| parent | c64b6891f6e28c1a7f11871d3dcccdfe75944644 (diff) | |
Remember some more paths when selecting files (#2728).
* export subtitles
* export video
* debug log
* cinema database
* config file
Diffstat (limited to 'src/wx/player_config_dialog.cc')
| -rw-r--r-- | src/wx/player_config_dialog.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/player_config_dialog.cc b/src/wx/player_config_dialog.cc index 512c64c91..58874e50b 100644 --- a/src/wx/player_config_dialog.cc +++ b/src/wx/player_config_dialog.cc @@ -126,7 +126,7 @@ private: ++r; add_label_to_sizer (table, _panel, _("Debug log file"), true, wxGBPosition (r, 0)); - _debug_log_file = new FilePickerCtrl (_panel, _("Select debug log file"), "*", false, true); + _debug_log_file = new FilePickerCtrl(_panel, _("Select debug log file"), "*", false, true, "DebugLogPath"); table->Add (_debug_log_file, wxGBPosition(r, 1)); ++r; @@ -208,7 +208,9 @@ private: void debug_log_file_changed () { - Config::instance()->set_player_debug_log_file(_debug_log_file->path()); + if (auto path = _debug_log_file->path()) { + Config::instance()->set_player_debug_log_file(*path); + } } wxChoice* _player_mode; |
