mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-04-08 09:02:47 +02:00
15 lines
439 B
Lua
15 lines
439 B
Lua
|
|
local paths = require("Paths")
|
|
local system = require("System")
|
|
|
|
local workspace, icon, menu = select(1, ...), select(2, ...), select(3, ...)
|
|
local localization = system.getSystemLocalization()
|
|
|
|
menu:addItem(localization.edit).onTouch = function()
|
|
system.execute(paths.editor, icon.path)
|
|
end
|
|
|
|
menu:addItem(localization.uploadToPastebin, not component.isAvailable("internet")).onTouch = function()
|
|
system.uploadToPastebin(icon.path)
|
|
end
|