diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-06-04 00:26:56 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-06-06 23:10:58 +0200 |
| commit | fcba100f0dfd1d4214291abb76f22ebd696c24d4 (patch) | |
| tree | d31225dbe78d324615a55e0abdbd0f6b1740e2c4 /src/lib/config.cc | |
| parent | 7b30ec45f8d3d2881d633356058628373eb47057 (diff) | |
Preserve export video settings in the config (#2259).
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index 3661d8ba5..caea995be 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -79,6 +79,7 @@ Config::Config () /* DKDMs are not considered a thing to reset on set_defaults() */ : _dkdms (new DKDMGroup ("root")) , _default_kdm_duration (1, RoughDuration::Unit::WEEKS) + , _export(this) { set_defaults (); } @@ -203,6 +204,8 @@ Config::set_defaults () set_kdm_email_to_default (); set_notification_email_to_default (); set_cover_sheet_to_default (); + + _export.set_defaults(); } void @@ -589,6 +592,8 @@ try } _auto_crop_threshold = f.optional_number_child<double>("AutoCropThreshold").get_value_or(0.1); + _export.read(f.optional_node_child("Export")); + if (boost::filesystem::exists (_cinemas_file)) { cxml::Document f ("Cinemas"); f.read_file (_cinemas_file); @@ -1026,6 +1031,8 @@ Config::write_config () const root->add_child("DefaultKDMType")->add_child_text(dcp::formulation_to_string(_default_kdm_type)); root->add_child("AutoCropThreshold")->add_child_text(raw_convert<string>(_auto_crop_threshold)); + _export.write(root->add_child("Export")); + auto target = config_write_file(); try { |
