From e5f570a6e29f85f8580bb57bc6d085ba50c4798a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 5 May 2020 14:10:27 +0200 Subject: Load/save show_peaks --- src/crystfel_gui.c | 1 + src/gui_project.c | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src') 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"); -- cgit v1.2.3