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

Commit 38f7c67

Browse files
authored
Merge pull request #1919 from livecode/bugfix-21014
[Bug 21014] Fix installing extensions from local .lce files
2 parents 412f176 + e922e14 commit 38f7c67

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

Toolset/libraries/revideextensionlibrary.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ end revIDEExtensionStandaloneSettingsInfo
266266
##############################
267267

268268
private command __extensionDownloadBegin pExtensionUrl, pType, pCallbackObject, pCallbackMessage
269-
if not pExtensionUrl begins with "http" then
269+
if not (pExtensionUrl begins with "http") then
270270
# pExtensionPath is not a URL or file on disk
271271
return "Could not download extension. The extension must be a URL" && \
272272
"to a valid package:" && pExtensionUrl for error

Toolset/palettes/extension manager/revideextensionmanagerbehavior.livecodescript

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ end installNew
5252
on installExtension pExtensionURL, pTypeID, pType
5353
lock screen
5454
showList pType
55-
revIDEExtensionDownloadAndInstall pExtensionURL, pType
55+
if pExtensionURL begins with "http" then
56+
// get from extensions store
57+
revIDEExtensionDownloadAndInstall pExtensionURL
58+
else
59+
// get from local .lce file
60+
revIDEExtensionInstall pExtensionURL, pType
61+
end if
5662
unlock screen
57-
end installExtension
63+
end installExtension

notes/bugfix-21014.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix installing extensions from local .lce files

0 commit comments

Comments
 (0)