From 9c42fae1f27aaa2469dc9eb4ceb6f4c87f28a9cd Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 25 Jan 2023 19:08:19 +0100 Subject: [PATCH] Mode changing via menu ! --- src/ui/actions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/actions.c b/src/ui/actions.c index 3d11181..58c94ec 100644 --- a/src/ui/actions.c +++ b/src/ui/actions.c @@ -91,7 +91,7 @@ void on_editmode_action(GSimpleAction *action, g_assert(GEM_GRAPH_CLIENT_IS_APPLICATION(self)); - g_application_quit(G_APPLICATION(self)); + uiWindowStackChange("edit"); } void on_runmode_action(GSimpleAction *action, @@ -102,7 +102,7 @@ void on_runmode_action(GSimpleAction *action, g_assert(GEM_GRAPH_CLIENT_IS_APPLICATION(self)); - g_application_quit(G_APPLICATION(self)); + uiWindowStackChange("run"); } void on_presentmode_action(GSimpleAction *action, @@ -113,7 +113,7 @@ void on_presentmode_action(GSimpleAction *action, g_assert(GEM_GRAPH_CLIENT_IS_APPLICATION(self)); - g_application_quit(G_APPLICATION(self)); + uiWindowStackChange("presentation"); } void on_openfile_action(GSimpleAction *action,