aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-23 12:31:41 +0200
committerThomas White <taw@physics.org>2020-09-23 12:31:41 +0200
commitc23eefcb9f3663dda4bfa6a7054301eb922cf99d (patch)
tree2e5b33b252a03b8c75e08d5e1ebeb0637463d568 /src
parent552e2cd29a802d288d74da5be286095d7f548665 (diff)
GUI: Make sure peak detection is updated
Diffstat (limited to 'src')
-rw-r--r--src/gui_peaksearch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c
index 334a624e..4f8f37d9 100644
--- a/src/gui_peaksearch.c
+++ b/src/gui_peaksearch.c
@@ -417,6 +417,8 @@ static void peaksearch_algo_changed(GtkWidget *combo,
/* FIXME: Radii */
gtk_widget_show_all(proj->peak_vbox);
+ update_peaks(proj);
+ update_imageview(proj);
proj->unsaved = 1;
}
@@ -450,6 +452,8 @@ gint peaksearch_sig(GtkWidget *widget, struct crystfelproject *proj)
if ( proj->peak_params != NULL ) return FALSE;
proj->show_peaks = 1;
+ crystfel_image_view_set_show_peaks(CRYSTFEL_IMAGE_VIEW(proj->imageview),
+ proj->show_peaks);
w = gtk_ui_manager_get_widget(proj->ui, "/ui/mainwindow/view/peaks");
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(w), 1);