Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1919 from livecode/bugfix-21014
Browse files Browse the repository at this point in the history
[Bug 21014] Fix installing extensions from local .lce files
  • Loading branch information
livecodeali committed Feb 28, 2018
2 parents 412f176 + e922e14 commit 38f7c67
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Toolset/libraries/revideextensionlibrary.livecodescript
Expand Up @@ -266,7 +266,7 @@ end revIDEExtensionStandaloneSettingsInfo
##############################

private command __extensionDownloadBegin pExtensionUrl, pType, pCallbackObject, pCallbackMessage
if not pExtensionUrl begins with "http" then
if not (pExtensionUrl begins with "http") then
# pExtensionPath is not a URL or file on disk
return "Could not download extension. The extension must be a URL" && \
"to a valid package:" && pExtensionUrl for error
Expand Down
Expand Up @@ -52,6 +52,12 @@ end installNew
on installExtension pExtensionURL, pTypeID, pType
lock screen
showList pType
revIDEExtensionDownloadAndInstall pExtensionURL, pType
if pExtensionURL begins with "http" then
// get from extensions store
revIDEExtensionDownloadAndInstall pExtensionURL
else
// get from local .lce file
revIDEExtensionInstall pExtensionURL, pType
end if
unlock screen
end installExtension
end installExtension
1 change: 1 addition & 0 deletions notes/bugfix-21014.md
@@ -0,0 +1 @@
# Fix installing extensions from local .lce files

0 comments on commit 38f7c67

Please sign in to comment.