aboutsummaryrefslogtreecommitdiff
path: root/src/gui_project.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_project.c')
-rw-r--r--src/gui_project.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_project.c b/src/gui_project.c
index 65c06032..48102ac6 100644
--- a/src/gui_project.c
+++ b/src/gui_project.c
@@ -199,6 +199,10 @@ static void handle_var(const char *key, const char *val,
proj->peak_search_params.revalidate = parse_int(val);
}
+ if ( strcmp(key, "show_peaks") == 0 ) {
+ proj->show_peaks = parse_int(val);
+ }
+
if ( strcmp(key, "backend") == 0 ) {
proj->backend = parse_backend(val);
}
@@ -370,6 +374,7 @@ int save_project(struct crystfelproject *proj)
fprintf(fh, "peak_search_params.revalidate %i\n",
proj->peak_search_params.revalidate);
+ fprintf(fh, "show_peaks %i\n", proj->show_peaks);
fprintf(fh, "backend %s\n", proj->backend->name);
fprintf(fh, "-----\n");