From 371dc092b9d7a2b1fe07060249a559fdd7979a4e Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Tue, 4 Feb 2025 13:09:16 +0300 Subject: [PATCH] move to the top node and use h.st.Restart() to re-initialize the state --- handlers/application/menuhandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/application/menuhandler.go b/handlers/application/menuhandler.go index 2284502..941e9bd 100644 --- a/handlers/application/menuhandler.go +++ b/handlers/application/menuhandler.go @@ -129,7 +129,7 @@ func (h *MenuHandlers) Init(ctx context.Context, sym string, input []byte) (reso if len(input) == 0 { // move to the top node h.st.Code = []byte{} - h.st.ExecPath = []string{} + h.st.Restart() } sessionId, ok := ctx.Value("SessionId").(string)