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

Commit 102476a

Browse files
committed
[[ Bug 21095 ]] Load required extensions on startup
This patch both ensures that the menu option to not load an extension on startup in the extension manager is removed from IDE dependencies and also that IDE dependencies will be loaded regardless of the setting if it happened to be set in another way or a widget becomes a dependency in a new version.
1 parent 520059b commit 102476a

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

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)