diff --git a/Applications/Finder/Finder.lua b/Applications/Finder/Finder.lua index 3e735d27..0fd94d97 100644 --- a/Applications/Finder/Finder.lua +++ b/Applications/Finder/Finder.lua @@ -500,7 +500,7 @@ while true do elseif action == "Загрузить на Pastebin" then shell.execute("System/Applications/Pastebin.app/Pastebin.lua upload " .. path) elseif action == "Установить как обои" then - ecs.error(path) + --ecs.error(path) ecs.createShortCut("MineOS/System/OS/Wallpaper.lnk", path) computer.pushSignal("OSWallpaperChanged") buffer.paste(1, 1, oldPixelsOfFullScreen) diff --git a/MineOS/OS.lua b/MineOS/OS.lua index 74ecdff1..41bd1511 100644 --- a/MineOS/OS.lua +++ b/MineOS/OS.lua @@ -476,6 +476,10 @@ while true do drawAll() end end + elseif eventData[1] == "OSWallpaperChanged" then + ecs.createShortCut(pathToWallpaper, path) + changeWallpaper() + drawAll(true) end end