From fcba100f0dfd1d4214291abb76f22ebd696c24d4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 4 Jun 2022 00:26:56 +0200 Subject: Preserve export video settings in the config (#2259). --- src/lib/config.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/config.cc') 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("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(_auto_crop_threshold)); + _export.write(root->add_child("Export")); + auto target = config_write_file(); try { -- cgit v1.2.3