Багфикс аппмаркета

This commit is contained in:
Igor Timofeev 2017-08-29 03:35:22 +03:00
parent 58fe2d9508
commit c174cb7d14
2 changed files with 7 additions and 7 deletions

View File

@ -920,7 +920,7 @@
icon="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/Applications/AppMarket/Icon.pic",
createShortcut="dock",
forceDownload=true,
version=1.61,
version=1.62,
resources={
{
path="/Update.pic",

View File

@ -31,12 +31,12 @@ local function newApp(x, y, width, applicationListElement, hideDownloadButton)
if applicationListElement.icon then
web.downloadFile(applicationListElement.icon, temproraryIconPath)
app.icon.image = image.load(temproraryIconPath)
else
if applicationListElement.type == "Wallpaper" then
app.icon.image = MineOSCore.icons.image
elseif applicationListElement.type == "Library" then
app.icon.image = MineOSCore.icons.lua
end
-- else
-- if applicationListElement.type == "Wallpaper" then
-- app.icon.image = MineOSCore.icons.image
-- elseif applicationListElement.type == "Library" then
-- app.icon.image = MineOSCore.icons.lua
-- end
end
app.downloadButton = app:addChild(GUI.button(1, 1, 13, 1, 0x66DB80, 0xFFFFFF, 0x339240, 0xFFFFFF, localization.download))