mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-11 13:42:38 +01:00
14 lines
401 B
Lua
14 lines
401 B
Lua
|
|
local paths = require("Paths")
|
|
local system = require("System")
|
|
|
|
local workspace, icon, menu = select(1, ...), select(2, ...), select(3, ...)
|
|
|
|
menu:addItem(system.localization.edit).onTouch = function()
|
|
system.execute(paths.editor, icon.path)
|
|
end
|
|
|
|
menu:addItem(system.localization.uploadToPastebin, not component.isAvailable("internet")).onTouch = function()
|
|
system.uploadToPastebin(icon.path)
|
|
end
|