X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fconfig.h;h=1e16fc840a607814bd8fcef1891151cb2918a569;hb=8449388da769c45ef8a441bccdeb062bc96d27ae;hp=c625e92424247314004232d92d48264d1314520b;hpb=04badd0c82d3ce82ee87c07e120e585899d4acff;p=dcpomatic.git diff --git a/src/lib/config.h b/src/lib/config.h index c625e9242..1e16fc840 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -381,6 +381,10 @@ public: return _decode_reduction; } + bool default_notify () const { + return _default_notify; + } + /* SET (mostly) */ void set_master_encoding_threads (int n) { @@ -662,6 +666,10 @@ public: maybe_set (_decode_reduction, r); } + void set_default_notify (bool n) { + maybe_set (_default_notify, n); + } + void clear_history () { _history.clear (); changed (); @@ -723,7 +731,7 @@ public: /** If set, this overrides the standard path (in home, Library, AppData or wherever) for config.xml and cinemas.xml */ static boost::optional override_path; - + private: Config (); static boost::filesystem::path path (std::string file, bool create_directories = true); @@ -850,6 +858,7 @@ private: boost::optional _last_dkdm_write_type; int _frames_in_memory_multiplier; boost::optional _decode_reduction; + bool _default_notify; static int const _current_version;