Add read-only option

Add command line option to disable all system and process changing
features.
This commit is contained in:
Christian Göttsche
2021-01-21 20:27:37 +01:00
committed by cgzones
parent 812cfcb94d
commit 36880cd61c
12 changed files with 108 additions and 42 deletions

View File

@ -472,3 +472,13 @@ void Settings_setSortKey(Settings* this, ProcessField sortKey) {
this->treeDirection = (Process_fields[sortKey].defaultSortDesc) ? -1 : 1;
}
}
static bool readonly = false;
void Settings_enableReadonly(void) {
readonly = true;
}
bool Settings_isReadonly(void) {
return readonly;
}