From 0cd709a525530a1da7946bda95a7822ff887aecd Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sun, 21 Oct 2018 18:48:08 -0400 Subject: [PATCH] missing pages definition --- sys/apis/ui.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/apis/ui.lua b/sys/apis/ui.lua index d49501f..f17d05d 100644 --- a/sys/apis/ui.lua +++ b/sys/apis/ui.lua @@ -306,6 +306,9 @@ function Manager:setDefaultDevice(dev) end function Manager:addPage(name, page) + if not self.pages then + self.pages = { } + end self.pages[name] = page end