diff --git a/sys/apis/ui.lua b/sys/apis/ui.lua index 01cf867..d49501f 100644 --- a/sys/apis/ui.lua +++ b/sys/apis/ui.lua @@ -2346,10 +2346,7 @@ function UI.Wizard:eventHandler(event) event.current:disable() end - -- a new current view local current = event.next or event.prev - current:enable() - if Util.find(self.pages, 'index', current.index - 1) then self.previousButton:enable() else @@ -2363,6 +2360,8 @@ function UI.Wizard:eventHandler(event) self.nextButton.text = 'Accept' self.nextButton.event = 'accept' end + -- a new current view + current:enable() self:draw() end end diff --git a/sys/apps/Installer.lua b/sys/apps/Installer.lua index 81c3caa..1d74733 100644 --- a/sys/apps/Installer.lua +++ b/sys/apps/Installer.lua @@ -8,7 +8,7 @@ local injector if not install.testing then _ENV.BRANCH = 'develop-1.8' local url ='https://raw.githubusercontent.com/kepler155c/opus/develop-1.8/sys/apis/injector.lua' - injector = load(http.get(url).readAll(), 'injector.lua', nil, _ENV) + injector = load(http.get(url).readAll(), 'injector.lua', nil, _ENV)() else injector = _G.requireInjector end