From b1762f6d127b2896fbed7b65762eab9949bbd2fb Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Thu, 19 Apr 2018 15:53:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A5=D0=BC,=20=D0=B8=20=D1=82=D1=83=D1=82=20?= =?UTF-8?q?=D1=8D=D1=82=D0=B0=20=D1=85=D1=8D=D1=83=D0=B9=D0=BD=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/Control/Main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Applications/Control/Main.lua b/Applications/Control/Main.lua index 8873094c..70c05530 100644 --- a/Applications/Control/Main.lua +++ b/Applications/Control/Main.lua @@ -32,6 +32,7 @@ local function loadModules() if pcallSuccess then window.tabBar:addItem(reason.name).onTouch = function() reason.onTouch() + MineOSInterface.mainContainer:drawOnScreen() end else error("Failed to call loaded module \"" .. tostring(fileList[i]) .. "\": " .. tostring(reason)) @@ -49,7 +50,7 @@ window.onResize = function(width, height) window.contentContainer.width = width window.contentContainer.height = window.backgroundPanel.height - window.tabBar:getItem(window.tabBar.selectedItem).onTouch() + window.tabBar:getItem(window.tabBar:getSelectedIndex()).onTouch() end ----------------------------------------------------------------------------------------------------------------