summaryrefslogtreecommitdiffstats
path: root/Settings.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-12-19 16:46:00 +0100
committerBenBE <BenBE@geshi.org>2021-05-23 09:30:36 +0200
commitbf07c713ba431e86edf3773cc7428398c911fc46 (patch)
tree2b0f25a96562aade4c8af32d9e015ea61fcafeaa /Settings.c
parentd9feff150c1f0fb7ae8156bc5271c6bac482aac4 (diff)
Allow for highlighting of deleted executables to be configured
Fixes #383
Diffstat (limited to 'Settings.c')
-rw-r--r--Settings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Settings.c b/Settings.c
index 92d96dd5..acb3edfa 100644
--- a/Settings.c
+++ b/Settings.c
@@ -175,6 +175,8 @@ static bool Settings_read(Settings* this, const char* fileName, unsigned int ini
this->showProgramPath = atoi(option[1]);
} else if (String_eq(option[0], "highlight_base_name")) {
this->highlightBaseName = atoi(option[1]);
+ } else if (String_eq(option[0], "highlight_deleted_exe")) {
+ this->highlightDeletedExe = atoi(option[1]);
} else if (String_eq(option[0], "highlight_megabytes")) {
this->highlightMegabytes = atoi(option[1]);
} else if (String_eq(option[0], "highlight_threads")) {
@@ -307,6 +309,7 @@ int Settings_write(const Settings* this, bool onCrash) {
fprintf(fd, "show_thread_names=%d\n", (int) this->showThreadNames);
fprintf(fd, "show_program_path=%d\n", (int) this->showProgramPath);
fprintf(fd, "highlight_base_name=%d\n", (int) this->highlightBaseName);
+ fprintf(fd, "highlight_deleted_exe=%d\n", (int) this->highlightDeletedExe);
fprintf(fd, "highlight_megabytes=%d\n", (int) this->highlightMegabytes);
fprintf(fd, "highlight_threads=%d\n", (int) this->highlightThreads);
fprintf(fd, "highlight_changes=%d\n", (int) this->highlightChanges);
@@ -368,6 +371,7 @@ Settings* Settings_new(unsigned int initialCpuCount) {
this->treeView = false;
this->allBranchesCollapsed = false;
this->highlightBaseName = false;
+ this->highlightDeletedExe = true;
this->highlightMegabytes = false;
this->detailedCPUTime = false;
this->countCPUsFromOne = false;

© 2014-2024 Faster IT GmbH | imprint | privacy policy