summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-01-13 20:40:24 +0100
committerCarl Hetherington <cth@carlh.net>2023-01-14 00:42:39 +0100
commit0c66eff01358e75ff524f395aeb634ec34a47313 (patch)
tree3133a00712a93af7a90408f6982f579c45224dec /src/lib/config.h
parentcf587f405a1a4e95ff3904956df7fd7ef3d70218 (diff)
Add options for where the add files dialog starts (#2413).
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index b6a1a535d..a816cd89b 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -603,6 +603,15 @@ public:
return _main_content_divider_sash_position;
}
+ enum class DefaultAddFileLocation {
+ SAME_AS_LAST_TIME,
+ SAME_AS_PROJECT
+ };
+
+ DefaultAddFileLocation default_add_file_location() const {
+ return _default_add_file_location;
+ }
+
/* SET (mostly) */
void set_master_encoding_threads (int n) {
@@ -1172,6 +1181,10 @@ public:
maybe_set(_main_content_divider_sash_position, position);
}
+ void set_default_add_file_location(DefaultAddFileLocation location) {
+ maybe_set(_default_add_file_location, location);
+ }
+
void changed (Property p = OTHER);
boost::signals2::signal<void (Property)> Changed;
/** Emitted if read() failed on an existing Config file. There is nothing
@@ -1408,6 +1421,7 @@ private:
boost::optional<std::string> _last_release_notes_version;
boost::optional<int> _main_divider_sash_position;
boost::optional<int> _main_content_divider_sash_position;
+ DefaultAddFileLocation _default_add_file_location;
ExportConfig _export;