mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-11 21:52:39 +01:00
19 lines
534 B
Lua
Executable File
19 lines
534 B
Lua
Executable File
|
|
local system = require("System")
|
|
|
|
local workspace, icon, menu = select(1, ...), select(2, ...), select(3, ...)
|
|
|
|
menu:addItem(system.localization.setAsWallpaper).onTouch = function()
|
|
system.properties.interfaceWallpaperEnabled = true
|
|
system.properties.interfaceWallpaperPath = icon.path
|
|
|
|
system.updateWallpaper()
|
|
workspace:draw()
|
|
|
|
system.saveProperties()
|
|
end
|
|
|
|
menu:addItem(system.localization.uploadToPastebin, not component.isAvailable("internet")).onTouch = function()
|
|
system.uploadToPastebin(icon.path)
|
|
end
|