From df79d429bf1663a0053844b7e98690d2fdfb790d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 21 Jun 2021 23:56:13 +0200 Subject: Remember the path used for "add files" (#2049). Also default to the home directory rather than where DoM was run from, or something equally unhelpful. --- src/lib/config.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/config.h') diff --git a/src/lib/config.h b/src/lib/config.h index 166267124..5b64922e6 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -539,6 +539,10 @@ public: return _custom_languages; } + boost::optional add_files_path () const { + return _add_files_path; + } + /* SET (mostly) */ void set_master_encoding_threads (int n) { @@ -1048,6 +1052,11 @@ public: void add_custom_language (dcp::LanguageTag tag); + void set_add_files_path (boost::filesystem::path p) { + _add_files_path = p; + changed (); + } + void changed (Property p = OTHER); boost::signals2::signal Changed; /** Emitted if read() failed on an existing Config file. There is nothing @@ -1260,6 +1269,7 @@ private: boost::optional _player_kdm_directory; boost::optional _audio_mapping; std::vector _custom_languages; + boost::optional _add_files_path; static int const _current_version; -- cgit v1.2.3