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

Commit 5da25b6

Browse files
committed
[[ Extensions ]] Accurately determine if ext is from store
1 parent 38e6e2e commit 5da25b6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Toolset/libraries/revideextensionlibrary.livecodescript

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,14 @@ private command __extensionInstallPackage pPackageLocation
8787
throw "No package found at" && pPackageLocation
8888
end if
8989

90-
local tCacheIndex, tFromStore
90+
local tCacheIndex
9191
put __extensionCacheID("download_package_path", pPackageLocation) \
9292
into tCacheIndex
9393
if tCacheIndex is not a number then
94-
-- Direct install from package file
95-
put false into tFromStore
9694
put the number of elements of sExtensions + 1 into tCacheIndex
9795
__extensionPropertySet tCacheIndex, "download_package_path", pPackageLocation
9896
__extensionUpdateUIWithPackage tCacheIndex, pPackageLocation
99-
else
100-
put true into tFromStore
10197
end if
102-
__extensionPropertySet tCacheIndex, "downloaded_from_store", tFromStore
10398
__extensionPropertySet tCacheIndex, "status", "installing"
10499

105100
local tVerifyResult, tName
@@ -358,6 +353,7 @@ private command __extensionDownload pCacheIndex
358353
__extensionPropertySet pCacheIndex, "progress_message", "Downloading"
359354
__extensionPropertySet pCacheIndex, "progress", 0
360355
__extensionPropertySet pCacheIndex, "label", tPackageFilePath
356+
__extensionPropertySet pCacheIndex, "downloaded_from_store", true
361357

362358
__extensionUpdateUIWithPackage pCacheIndex, tPackageFilePath
363359

0 commit comments

Comments
 (0)