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

Commit 9beee9c

Browse files
committed
Tweaks to avoid loading Plugin stacks into memory
1 parent 4479306 commit 9beee9c

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

Toolset/palettes/start center/revStartCenterBehavior.livecodescript

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -96,24 +96,9 @@ on ideOpenStack pTarget
9696
local tTargetStack
9797
put the short name of ideStackOfObject(pTarget) into tTargetStack
9898

99-
local tPlugins
100-
put revIDEGetAllPlugins() into tPlugins
101-
102-
repeat for each line tLine in tPlugins
103-
local tSubstacks
104-
if tLine ends with ".livecode" or tLine ends with ".livecodescript" or \
105-
tLine ends with ".rev" then
106-
put the substacks of stack tLine into tSubstacks
107-
// Unload Plugin from memory
108-
if not (the short name of stack tLine is in the openstacks) then
109-
delete stack tLine
110-
end if
111-
end if
112-
if tLine is the filename of stack tTargetStack OR \
113-
tSubstacks contains tTargetStack then
114-
exit ideOpenStack
115-
end if
116-
end repeat
99+
if the filename of stack (the mainstack of stack tTargetStack) is among the lines of revIDEGetAllPlugins() then
100+
exit ideOpenStack
101+
end if
117102

118103
if tTargetStack is not the short name of me then
119104
startCenterClose

0 commit comments

Comments
 (0)