aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-05-08 16:40:03 +0200
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commit29c13decd299e55234929756581a1469d797cd36 (patch)
tree0cdbcfe8a393d6d74c74420b534e037e17bf3dca /src
parent8f84a6238a7eaa1f411f4d958a93e0f00464892d (diff)
Set "Show peaks" toggle after loading project
Diffstat (limited to 'src')
-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);
}