diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-09-02 13:55:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-09-02 13:55:12 +0100 |
| commit | 82598b8d3bcd52c37a153621144f52d03e77fd20 (patch) | |
| tree | 32df92850024d333ccadfb412a826a33498fc843 /src/lib/config.cc | |
| parent | f51029d4eb1e663bc5c97b2987d35bb89e6657b5 (diff) | |
Remember the last directory used when opening DCPs in the player (#1121).
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index f595b960a..4f481ef30 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -354,6 +354,7 @@ try if (f.optional_string_child("CoverSheet")) { _cover_sheet = f.optional_string_child("CoverSheet").get(); } + _last_player_load_directory = f.optional_string_child("LastPlayerLoadDirectory"); /* Replace any cinemas from config.xml with those from the configured file */ if (boost::filesystem::exists (_cinemas_file)) { @@ -631,6 +632,9 @@ Config::write_config () const } /* [XML] CoverSheet Text of the cover sheet to write when making DCPs */ root->add_child("CoverSheet")->add_child_text (_cover_sheet); + if (_last_player_load_directory) { + root->add_child("LastPlayerLoadDirectory")->add_child_text(_last_player_load_directory->string()); + } try { doc.write_to_file_formatted(config_file().string()); |
