Фига баг занятный

This commit is contained in:
Igor Timofeev 2018-03-17 00:06:06 +03:00
parent 56f03d0dbe
commit b4f0244bd5

View File

@ -136,7 +136,7 @@ local function newSidebarItem(y, textColor, text, path)
end
object.eventHandler = function(mainContainer, object, eventData)
if eventData[1] == "touch" then
if eventData[1] == "touch" and object.onTouch then
object.onTouch(eventData)
end
end
@ -217,7 +217,7 @@ updateSidebar = function()
end
end
if #MineOSCore.properties.FTPConnections > 0 then
if MineOSNetwork.internetProxy and #MineOSCore.properties.FTPConnections > 0 then
y = y + 1
newSidebarItem(y, 0x3C3C3C, MineOSCore.localization.networkFTPConnections)
y = y + 1