diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-03-14 00:09:09 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-03-14 00:09:09 +0100 |
| commit | d9338a75602429347e36e5b393728c10cda731b3 (patch) | |
| tree | a844d223a7e336488d060ce0e026361390c051a2 /src/lib/config.h | |
| parent | e97d91c544d95c618fa4cb66db6f3a8ad73a7281 (diff) | |
Remember the state of the write to/email checkboxes in the KDM creator across runs (#2213).
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 3277dc153..ec152b969 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -555,6 +555,14 @@ public: return _use_isdcf_name_by_default; } + bool write_kdms_to_disk () const { + return _write_kdms_to_disk; + } + + bool email_kdms () const { + return _email_kdms; + } + /* SET (mostly) */ void set_master_encoding_threads (int n) { @@ -1063,6 +1071,14 @@ public: maybe_set (_use_isdcf_name_by_default, use); } + void set_write_kdms_to_disk (bool write) { + maybe_set (_write_kdms_to_disk, write); + } + + void set_email_kdms (bool email) { + maybe_set (_email_kdms, email); + } + void changed (Property p = OTHER); boost::signals2::signal<void (Property)> Changed; /** Emitted if read() failed on an existing Config file. There is nothing @@ -1279,6 +1295,8 @@ private: std::vector<dcp::LanguageTag> _custom_languages; boost::optional<boost::filesystem::path> _add_files_path; bool _use_isdcf_name_by_default; + bool _write_kdms_to_disk; + bool _email_kdms; static int const _current_version; |
