diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-07-07 15:21:19 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-07-20 10:38:17 +0200 |
| commit | f706bbb9afd10472e81a051cd5db601d6404377c (patch) | |
| tree | e55e0c1c72d71c1eec008f3527757293c942c9b7 /src/lib/config.cc | |
| parent | 704bc0f8be05ddca94a3853a6e112f22f8f2df70 (diff) | |
Basic release notes support (#2282).
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index aacc71edf..cb2ec8885 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -193,6 +193,7 @@ Config::set_defaults () _default_kdm_type = dcp::Formulation::MODIFIED_TRANSITIONAL_1; _default_kdm_duration = RoughDuration(1, RoughDuration::Unit::WEEKS); _auto_crop_threshold = 0.1; + _last_release_notes_version = boost::none; _allowed_dcp_frame_rates.clear (); _allowed_dcp_frame_rates.push_back (24); @@ -593,6 +594,7 @@ try _default_kdm_duration = RoughDuration(1, RoughDuration::Unit::WEEKS); } _auto_crop_threshold = f.optional_number_child<double>("AutoCropThreshold").get_value_or(0.1); + _last_release_notes_version = f.optional_string_child("LastReleaseNotesVersion"); _export.read(f.optional_node_child("Export")); @@ -1034,6 +1036,9 @@ Config::write_config () const root->add_child("EmailKDMs")->add_child_text(_email_kdms ? "1" : "0"); 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)); + if (_last_release_notes_version) { + root->add_child("LastReleaseNotesVersion")->add_child_text(*_last_release_notes_version); + } _export.write(root->add_child("Export")); |
