Вот, значит, как

This commit is contained in:
Igor Timofeev 2016-06-03 09:07:37 +03:00
parent 5b219c4eb5
commit b88e1b4333
3 changed files with 6 additions and 5 deletions

View File

@ -668,7 +668,6 @@
["type"]="Application",
["icon"]="IgorTimofeev/OpenComputers/master/Applications/Calendar/Icon.pic",
["createShortcut"]="dock",
["forceDownload"]=true,
["version"]=1.0,
},
{

View File

@ -143,10 +143,12 @@ applications = seri.unserialize(getFromGitHubSafely(GitHubUserUrl .. "IgorTimofe
print(" ")
for i = 1, #preLoadApi do
print("Downloading must-have files (" .. fs.name(preLoadApi[i].path) .. ")")
print("Downloading \"" .. fs.name(preLoadApi[i].path) .. "\"")
getFromGitHubSafely(GitHubUserUrl .. preLoadApi[i].paste, preLoadApi[i].path)
end
print(" ")
print("Initialization stage is complete, loading installer")
print(" ")
package.loaded.ecs = nil

View File

@ -460,10 +460,10 @@ while true do
MineOSCore.drawIcon(icon.x, icon.y, pathOfDockShortcuts .. icon.path, false, 0xffffff)
buffer.draw()
local fileFormat = ecs.getFileFormat(icon.path)
if eventData[5] == 0 then
os.sleep(0.2)
MineOSCore.launchIcon(pathOfDockShortcuts .. icon.path)
drawAll(true)
icon.path = pathOfDockShortcuts .. icon.path
MineOSCore.iconLeftClick(icon, oldPixelsOfIcon, fileFormat, {method = getFileListAndDrawAll, arguments = {}}, {method = getFileListAndDrawAll, arguments = {true}}, {method = function() MineOSCore.safeLaunch("Finder.lua", "open", icon.path) end, arguments = {icon.path}})
else
local content = ecs.readShortcut(pathOfDockShortcuts .. icon.path)
action = context.menu(eventData[3], eventData[4], {MineOSCore.localization.contextMenuRemoveFromDock, not (currentCountOfIconsInDock > 1)})