aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crystfel_gui.c1
-rw-r--r--src/gui_project.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c
index 62337004..818a5747 100644
--- a/src/crystfel_gui.c
+++ b/src/crystfel_gui.c
@@ -722,6 +722,7 @@ int main(int argc, char *argv[])
dtempl);
}
update_imageview(&proj);
+ update_peaks(&proj);
}
/* Initialise backend */
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");