aboutsummaryrefslogtreecommitdiff
path: root/src/text_file_functions.cpp
diff options
context:
space:
mode:
authorwindrammer <31085911+likeawindrammer@users.noreply.github.com>2020-07-31 14:14:39 -0600
committerGitHub <noreply@github.com>2020-07-31 15:14:39 -0500
commit36b5af3cb9ce8e5530c5bd9353a4e2f10da506b6 (patch)
tree19e9217126837cac1ae3ab025b050bb3cfbda64b /src/text_file_functions.cpp
parentbab10ea14ddaf7af7aeeff925b373be1c347d0d7 (diff)
Add option for automatic logging (#203)
Just so we're on the same page, this is enabled by default. Co-authored-by: Cents02 <Cents02@Cents0.me>
Diffstat (limited to 'src/text_file_functions.cpp')
-rw-r--r--src/text_file_functions.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp
index 2340bd87..39754f39 100644
--- a/src/text_file_functions.cpp
+++ b/src/text_file_functions.cpp
@@ -1049,3 +1049,9 @@ QString AOApplication::get_casing_can_host_cases()
.value<QString>();
return result;
}
+bool AOApplication::get_auto_logging_enabled()
+{
+ QString result =
+ configini->value("automatic_logging_enabled", "true").value<QString>();
+ return result.startsWith("true");
+}