From 9afd77e2b008d90bbf9e5c8445f8f2cfe069bbb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Thu, 2 May 2019 09:36:23 +0200 Subject: [PATCH] Changed scope of top in show() --- monarch/monarch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monarch/monarch.lua b/monarch/monarch.lua index 58e59da..c383457 100644 --- a/monarch/monarch.lua +++ b/monarch/monarch.lua @@ -578,13 +578,13 @@ function M.show(id, options, data, cb) local co co = coroutine.create(function() + local top = stack[#stack] -- a screen can ignore the stack by setting the no_stack to true local add_to_stack = not options or not options.no_stack if add_to_stack then -- manipulate the current top -- close popup(s) if needed -- transition out - local top = stack[#stack] if top then -- keep top popup visible if new screen can be shown on top of a popup if top.popup and screen.popup_on_popup then