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

Commit 75f7b92

Browse files
committed
Added function to check if an IDE stack should appear in "Window" list
1 parent 899123e commit 75f7b92

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2249,6 +2249,15 @@ function revIDEStacksInUse
22492249
return tData
22502250
end revIDEStacksInUse
22512251

2252+
function revIDEStackIsIDEWindow pStackName
2253+
if pStackName begins with revIDEScriptEditorPrefix() or pStackName is "revDictionary" \
2254+
or pStackName is "revResourceCenter" or pStackName is "revOnline" then
2255+
return true
2256+
end if
2257+
2258+
return false
2259+
end revIDEStackIsIDEWindow
2260+
22522261
function revIDEAPIFilters
22532262
end revIDEAPIFilters
22542263

@@ -9816,7 +9825,7 @@ User stacks, script editors, the dictionary and resource center are considered w
98169825
from the point of view of the menubar
98179826
*/
98189827
function revIDEStackIsWindow pStackName
9819-
if pStackName begins with revIDEScriptEditorPrefix() or pStackName is "revDictionary" or pStackName is "revResourceCenter" or pStackName is "revOnline" then
9828+
if revIDEStackIsIDEWindow(pStackName) then
98209829
return true
98219830
end if
98229831

Toolset/palettes/menubar/revmenubar.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private on setupWindowMenu
173173
repeat for each line tStack in tWindows
174174
if there is not a stack tStack then next repeat
175175
put the short name of tStack into tStackName
176-
if tStackName begins with "revNewScriptEditor" or tStackName is "revDictionary" or tStackName is "revResourceCenter" or tStackName is "revOnline" then
176+
if revIDEStackIsIDEWindow(tStackName) then
177177
put the title of tStack into tStackName
178178
end if
179179

0 commit comments

Comments
 (0)