aboutsummaryrefslogtreecommitdiff
path: root/src/crystfel_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r--src/crystfel_gui.c4
1 files changed, 4 insertions, 0 deletions
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);
}