summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-03-14 00:09:09 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-14 00:17:52 +0100
commitfa413e203b864571ca00ec937088b87793f312df (patch)
treefe885bdc1be87ff9589e8410c4800a598f1f3855 /src/lib/config.h
parent93845c89294ee65756752c179a3fd8511793b1a2 (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.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 0f565fe50..cb4ed1365 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -564,6 +564,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) {
@@ -1080,6 +1088,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
@@ -1298,6 +1314,8 @@ private:
boost::optional<boost::filesystem::path> _add_files_path;
double _auto_crop_threshold;
bool _use_isdcf_name_by_default;
+ bool _write_kdms_to_disk;
+ bool _email_kdms;
static int const _current_version;