@@ -7,6 +7,7 @@ on preOpenStack
77 # ## Header
88 -- addFrameItem "add","header", "action", "Create a new extension", "plus sign", "plus sign","headerActionNewExtension", the long id of me
99 addFrameItem "open" ,"header" , "action" , "Open an existing extension" , "folder open" , "folder open" ,"headerActionOpenExtension" , the long id of me
10+ addFrameItem "edit source" , "header" , "action" , "Edit extension source code" , "lc-edit-script" , "lc-edit-script" , "headerActionEditSource" , the long id of me
1011
1112 addFrameItem "package" ,"footer" , "action" , "Package" , "archive" , "archive" ,"footerActionPackage" , the long id of me
1213 addFrameItem "uninstall" ,"footer" , "action" , "Uninstall" , "remove circle" , "remove circle" ,"footerActionUninstall" , the long id of me
@@ -76,6 +77,10 @@ end consoleScrollbarUpdate
7677on headerActionNewExtension
7778end headerActionNewExtension
7879
80+ on headerActionEditSource
81+ revIDEDeveloperExtensionEditScript loadedExtensionGet()
82+ end headerActionEditSource
83+
7984on headerActionOpenExtension
8085 answer file "Please select a valid extension file" \
8186 with type "LiveCode Builder|lcb" \
@@ -232,6 +237,12 @@ on populateExtensionList
232237end populateExtensionList
233238
234239private on displayExtensionData pData
240+ if pData ["file" ] is empty then
241+ disableFrameItem "edit source"
242+ else
243+ enableFrameItem "edit source"
244+ end if
245+
235246 # Exntensions label
236247 local tLabel
237248 put getDisplayName(pData ) into tLabel
0 commit comments