diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-05 20:51:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-12-05 20:51:41 +0100 |
| commit | 7f750b811657313a1b177468c48ba64d202b58f7 (patch) | |
| tree | 8289349686a0b88873cfad644af39e7e0dcf78f7 | |
| parent | ca0becb1dd13b47a8f1b7976dedc44466c49d0a7 (diff) | |
Use the same default folder for add DCP as add files (#2348).
| -rw-r--r-- | src/wx/content_panel.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 3dde85b43..9de22e844 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -673,7 +673,9 @@ ContentPanel::add_folder(boost::filesystem::path folder) void ContentPanel::add_dcp_clicked () { - auto d = new wxDirDialog (_splitter, _("Choose a DCP folder"), wxT(""), wxDD_DIR_MUST_EXIST); + auto const initial_path = Config::instance()->add_files_path(); + + auto d = new wxDirDialog(_splitter, _("Choose a DCP folder"), std_to_wx(initial_path ? initial_path->string() : home_directory().string()), wxDD_DIR_MUST_EXIST); ScopeGuard sg = [d]() { d->Destroy(); }; int r = d->ShowModal (); if (r != wxID_OK) { |
