From c75b1b0044210df99fe0ac5bfbc94ffac59773ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Ritzl?= Date: Thu, 19 Aug 2021 14:53:05 +0200 Subject: [PATCH] A screen added with no_stack should not manipulate the stack when hidden --- monarch/monarch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monarch/monarch.lua b/monarch/monarch.lua index fb82671..0b88888 100644 --- a/monarch/monarch.lua +++ b/monarch/monarch.lua @@ -795,7 +795,7 @@ function M.show(id, options, data, cb) -- show screen local cb = callbacks.track() show_in(screen, top, options and options.reload, add_to_stack, DO_NOT_WAIT_FOR_TRANSITION, function() - if top and not top.popup then + if add_to_stack and top and not top.popup then show_out(top, screen, WAIT_FOR_TRANSITION, callbacks.track()) end cb()