diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-05-11 23:29:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-05-27 23:05:45 +0100 |
| commit | 8449388da769c45ef8a441bccdeb062bc96d27ae (patch) | |
| tree | c21cbcb15406808c3fce176e21497b7db4e2ae1f /src/lib/config.h | |
| parent | c2dc55e06e47d2ff0771af37ce3cd5acb01c914d (diff) | |
Simple and optional messagebox notification when jobs finish.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 11 |
1 files changed, 10 insertions, 1 deletions
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<boost::filesystem::path> override_path; - + private: Config (); static boost::filesystem::path path (std::string file, bool create_directories = true); @@ -850,6 +858,7 @@ private: boost::optional<DKDMWriteType> _last_dkdm_write_type; int _frames_in_memory_multiplier; boost::optional<int> _decode_reduction; + bool _default_notify; static int const _current_version; |
