49 |
|
|
50 |
# Make run command available at start time only if there is an edit |
# Make run command available at start time only if there is an edit |
51 |
# pane opened |
# pane opened |
52 |
cmd.availability = plugin['/system/ui/current/EditPane'].is_link_slot? |
cmd.availability = plugin['/system/ui/current'].has_child?('EditPane') |
53 |
plugin["/system/ui/commands"].manager.command("App/Run/RunScript").icon = "/system/ui/icons/ScriptRunner/run" |
plugin["/system/ui/commands"].manager.command("App/Run/RunScript").icon = "/system/ui/icons/ScriptRunner/run" |
54 |
plugin["/system/ui/current/ToolBar"].manager.add_command("Run", "App/Run/RunScript") |
plugin["/system/ui/current/ToolBar"].manager.add_command("Run", "App/Run/RunScript") |
55 |
|
|