mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-07 19:52:40 +01:00
Вот, значит, как
This commit is contained in:
parent
5b219c4eb5
commit
b88e1b4333
@ -668,7 +668,6 @@
|
||||
["type"]="Application",
|
||||
["icon"]="IgorTimofeev/OpenComputers/master/Applications/Calendar/Icon.pic",
|
||||
["createShortcut"]="dock",
|
||||
["forceDownload"]=true,
|
||||
["version"]=1.0,
|
||||
},
|
||||
{
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user