From 0561ae7fd6458a310d29e5cde4dfa30877365fcb Mon Sep 17 00:00:00 2001 From: Cerapter Date: Sat, 28 Jul 2018 23:56:37 +0200 Subject: Allow the toggling of custom shownames. Don't forget to enable it in a theme. --- text_file_functions.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'text_file_functions.cpp') diff --git a/text_file_functions.cpp b/text_file_functions.cpp index 1389cf58..8ddeb6cb 100644 --- a/text_file_functions.cpp +++ b/text_file_functions.cpp @@ -102,13 +102,13 @@ int AOApplication::get_max_log_size() bool AOApplication::get_log_goes_downwards() { QString f_result = read_config("log_goes_downwards"); + return f_result.startsWith("true"); +} - if (f_result == "true") - return true; - else if (f_result == "false") - return false; - else - return true; +bool AOApplication::get_showname_enabled_by_default() +{ + QString f_result = read_config("show_custom_shownames"); + return f_result.startsWith("true"); } QString AOApplication::get_default_username() -- cgit