mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-01 00:34:21 +01:00
Update OS.lua
This commit is contained in:
parent
3e6dc7cd72
commit
eaee44c740
@ -69,6 +69,7 @@ end
|
||||
local function drawDesktop(x, y)
|
||||
|
||||
currentFileList = ecs.getFileList(workPath)
|
||||
currentFileList = ecs.reorganizeFilesAndFolders(currentFileList, false, false)
|
||||
|
||||
--ОЧИСТКА СТОЛА
|
||||
ecs.square(1, y, xSize, yCountOfIcons * (heightOfIcon + ySpaceBetweenIcons) - ySpaceBetweenIcons, background)
|
||||
@ -361,7 +362,7 @@ local function createDesktopShortCuts()
|
||||
local desktopPath = "System/OS/Desktop/"
|
||||
local dockPath = "System/OS/Dock/"
|
||||
if not fs.exists(desktopPath) then
|
||||
fs.makeDirectory(desktopPath)
|
||||
fs.makeDirectory(desktopPath.."My files")
|
||||
for i = 1, #apps do
|
||||
ecs.createShortCut(desktopPath..ecs.hideFileFormat(apps[i])..".lnk", apps[i])
|
||||
end
|
||||
@ -465,8 +466,6 @@ while true do
|
||||
ecs.createShortCut("System/OS/Dock/" .. ecs.hideFileFormat(obj["DesktopIcons"][key][5]) .. ".lnk", obj["DesktopIcons"][key][5])
|
||||
drawDesktop(xPosOfIcons, yPosOfIcons)
|
||||
drawDock()
|
||||
else
|
||||
|
||||
end
|
||||
|
||||
ecs.square(obj["DesktopIcons"][key][1], obj["DesktopIcons"][key][2], widthOfIcon, heightOfIcon, background)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user