From 29c13decd299e55234929756581a1469d797cd36 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 8 May 2020 16:40:03 +0200 Subject: Set "Show peaks" toggle after loading project --- src/crystfel_gui.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/crystfel_gui.c') diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index 3309f361..026d8f1a 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -719,12 +719,16 @@ int main(int argc, char *argv[]) /* Load state from disk */ if ( load_project(&proj) == 0 ) { DataTemplate *dtempl; + GtkAction *w; proj.cur_frame = 0; dtempl = data_template_new_from_file(proj.geom_filename); if ( dtempl != NULL ) { crystfel_image_view_set_datatemplate(CRYSTFEL_IMAGE_VIEW(proj.imageview), dtempl); } + w = gtk_ui_manager_get_action(proj.ui, "/mainwindow/view/peaks"); + gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(w), + proj.show_peaks); update_imageview(&proj); update_peaks(&proj); } -- cgit v1.2.3