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