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

Commit a9e3794

Browse files
Merge pull request #2011 from livecode/bugfix-17683
[17683] Ensure Start Center stays open when a Plugin opens a substack
2 parents 0a7252b + a680837 commit a9e3794

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Toolset/palettes/start center/revStartCenterBehavior.livecodescript

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,14 @@ on ideOpenStack pTarget
9999
local tPlugins
100100
put revIDEGetAllPlugins() into tPlugins
101101

102-
if tTargetStack is not the short name of me and \
103-
the filename of stack tTargetStack is not among the lines of tPlugins then
102+
repeat for each line tLine in tPlugins
103+
if tLine is the filename of stack tTargetStack OR \
104+
the substacks of stack tLine contains tTargetStack then
105+
exit ideOpenStack
106+
end if
107+
end repeat
108+
109+
if tTargetStack is not the short name of me then
104110
startCenterClose
105111
end if
106112
end ideOpenStack

0 commit comments

Comments
 (0)