diff options
| author | Cerapter <cerap@protonmail.com> | 2018-07-28 23:56:37 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-07-28 23:56:37 +0200 |
| commit | 0561ae7fd6458a310d29e5cde4dfa30877365fcb (patch) | |
| tree | 9a95c00e40dcdadddb2f9e509559172d8a93624f /text_file_functions.cpp | |
| parent | 5283bc68d26c63a637bbd60b11dc2c11a7635b76 (diff) | |
Allow the toggling of custom shownames.
Don't forget to enable it in a theme.
Diffstat (limited to 'text_file_functions.cpp')
| -rw-r--r-- | text_file_functions.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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() |
