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

Commit b9f30a7

Browse files
author
Monte Goulding
committed
[[ Bug 17409 ]] List all loaded stacks in the behavior picker
Previously only open stacks were listed in the property inspector behavior picker. As many stacks are loaded into memory for use as behaviors and libraries but not opened it is more helpful to list the mainstacks and their substacks.
1 parent cfed91d commit b9f30a7

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10864,7 +10864,7 @@ end shouldShow
1086410864

1086510865
function revIDEObjectSelectionMenu pTargetObjects, pTypeFilter
1086610866
local tStack, tDefaultStack
10867-
local tStacks,tCards,tControls,tOpenStacks
10867+
local tStacks,tCards,tControls,tStackList
1086810868
local tNumControls, tNumCards
1086910869
local tCheck, tControlsArray
1087010870
local tList,tControlsList
@@ -10928,11 +10928,25 @@ function revIDEObjectSelectionMenu pTargetObjects, pTypeFilter
1092810928
set the defaultStack to tDefaultStack
1092910929

1093010930
if shouldShow("stack", pTypeFilter) then
10931+
local tMainstack
10932+
repeat for each line tMainStack in the mainstacks
10933+
local tSubstacks
10934+
put the substacks of stack tMainstack into tSubstacks
10935+
if tStackList is not empty then
10936+
put return after tStackList
10937+
end if
10938+
put tMainstack after tStackList
10939+
if tSubstacks is not empty then
10940+
put return & tSubstacks after tStackList
10941+
end if
10942+
end repeat
10943+
1093110944
global gRevShowStacks
10932-
if gREVShowStacks then put the openStacks into tOpenStacks
10933-
else put revFilterStacksList(the openStacks) into tOpenStacks
10945+
if not gREVShowStacks then
10946+
put revFilterStacksList(tStackList) into tStackList
10947+
end if
1093410948
put empty into tStacks
10935-
repeat for each line l in tOpenStacks
10949+
repeat for each line l in tStackList
1093610950
put the long id of stack l into tLongID
1093710951
if tLongID is among the lines of pTargetObjects
1093810952
then put "!c" into tCheck

notes/bugfix-17409.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# List all loaded stacks in the behavior picker

0 commit comments

Comments
 (0)