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

Commit f8005f2

Browse files
Merge pull request #1941 from montegoulding/bugfix-21095
[[ Bug 21095 ]] Load required extensions on startup
2 parents 3608839 + 102476a commit f8005f2

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

Toolset/libraries/revideextensionlibrary.livecodescript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,8 @@ private command __revIDELCBExtensionLoad pID, pFolder, pVersion, pStatus, \
10661066
put pAdditionalInfoA["support_files"] into tSupportFiles
10671067
local tLoadOnStartup
10681068
if pError is empty then
1069-
put revIDEExtensionGetLoadOnStartup(pID) into tLoadOnStartup
1069+
put pAdditionalInfoA["_ide"] is true or \
1070+
revIDEExtensionGetLoadOnStartup(pID) into tLoadOnStartup
10701071
end if
10711072
if not pIsStartup or tLoadOnStartup is not false then
10721073
__LoadExtension tCacheIndex, "lcb", pSourceFile, pFolder, pStatus, pError

Toolset/palettes/extension manager/revideextensionmanagerrowbehavior.livecodescript

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,14 @@ private function __MenuActionsForRow pDataA
124124
put tShow after tActions
125125
end if
126126

127-
local tLoadOnStartup
128-
put "Load on startup/|Toggle Load" & return into tLoadOnStartup
129-
if revIDEExtensionGetLoadOnStartup(pDataA["name"]) is not false then
130-
put "!c" before tLoadOnStartup
127+
if not pDataA["_ide"] then
128+
local tLoadOnStartup
129+
put "Load on startup/|Toggle Load" & return into tLoadOnStartup
130+
if revIDEExtensionGetLoadOnStartup(pDataA["name"]) is not false then
131+
put "!c" before tLoadOnStartup
132+
end if
133+
put tLoadOnStartup after tActions
131134
end if
132-
put tLoadOnStartup after tActions
133135

134136
local tSampleList
135137
if pDataA["samples"] is not empty then

notes/bugfix-21095.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure extensions required by the IDE load on startup

0 commit comments

Comments
 (0)