This commit is contained in:
Igor Timofeev 2015-11-24 10:55:15 +03:00
parent 6e914bbf90
commit 780dcacd08
2 changed files with 5 additions and 1 deletions

View File

@ -500,7 +500,7 @@ while true do
elseif action == "Загрузить на Pastebin" then elseif action == "Загрузить на Pastebin" then
shell.execute("System/Applications/Pastebin.app/Pastebin.lua upload " .. path) shell.execute("System/Applications/Pastebin.app/Pastebin.lua upload " .. path)
elseif action == "Установить как обои" then elseif action == "Установить как обои" then
ecs.error(path) --ecs.error(path)
ecs.createShortCut("MineOS/System/OS/Wallpaper.lnk", path) ecs.createShortCut("MineOS/System/OS/Wallpaper.lnk", path)
computer.pushSignal("OSWallpaperChanged") computer.pushSignal("OSWallpaperChanged")
buffer.paste(1, 1, oldPixelsOfFullScreen) buffer.paste(1, 1, oldPixelsOfFullScreen)

View File

@ -476,6 +476,10 @@ while true do
drawAll() drawAll()
end end
end end
elseif eventData[1] == "OSWallpaperChanged" then
ecs.createShortCut(pathToWallpaper, path)
changeWallpaper()
drawAll(true)
end end
end end