diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-27 00:03:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-03-09 17:04:02 +0100 |
| commit | 450602739388811a6378314d6c309b99f7b28b60 (patch) | |
| tree | cdf2860abf7e2c447154fba0305178fdba70dbfe /src/lib/config.cc | |
| parent | 701c510562bfa4fffcd21f94f0714405ca508a37 (diff) | |
Add option to use (or not) ISDCF names by default.
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index 9b369a81f..0de19f70f 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -179,6 +179,7 @@ Config::set_defaults () _audio_mapping = boost::none; _custom_languages.clear (); _add_files_path = boost::none; + _use_isdcf_name_by_default = true; _allowed_dcp_frame_rates.clear (); _allowed_dcp_frame_rates.push_back (24); @@ -565,6 +566,7 @@ try } _add_files_path = f.optional_string_child("AddFilesPath"); + _use_isdcf_name_by_default = f.optional_bool_child("UseISDCFNameByDefault").get_value_or(true); if (boost::filesystem::exists (_cinemas_file)) { cxml::Document f ("Cinemas"); @@ -994,6 +996,7 @@ Config::write_config () const /* [XML] AddFilesPath The default path that will be offered in the picker when adding files to a film. */ root->add_child("AddFilesPath")->add_child_text(_add_files_path->string()); } + root->add_child("UseISDCFNameByDefault")->add_child_text(_use_isdcf_name_by_default ? "1" : "0"); auto target = config_write_file(); |
