aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-07 17:48:28 +0200
committerThomas White <taw@physics.org>2020-09-07 17:48:28 +0200
commitbbefdacb4b885daf0bc10c1b1576cb8ccab8597d (patch)
tree08bce1ca96a1b52f3c12cd36cb7b6f16718a1e5e
parent8e650b8c99bdaf36462373b91dd67db95c889e9b (diff)
Set Show Reflections menu item when loading project
-rw-r--r--src/crystfel_gui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c
index e7abe61d..3145c735 100644
--- a/src/crystfel_gui.c
+++ b/src/crystfel_gui.c
@@ -1051,6 +1051,11 @@ int main(int argc, char *argv[])
w = gtk_ui_manager_get_action(proj.ui, "/mainwindow/view/peaks");
gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(w),
proj.show_peaks);
+
+ w = gtk_ui_manager_get_action(proj.ui, "/mainwindow/view/refls");
+ gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(w),
+ proj.show_refls);
+
update_imageview(&proj);
}