X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Flib%2Fconfig.cc;fp=src%2Flib%2Fconfig.cc;h=0de19f70f866d8214529033ebd2e5534e10bf6ac;hb=450602739388811a6378314d6c309b99f7b28b60;hp=9b369a81f22442c98d7baa0cfcf27e63d9fc55cb;hpb=701c510562bfa4fffcd21f94f0714405ca508a37;p=dcpomatic.git 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();