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

Commit a013f73

Browse files
Merge pull request #1956 from livecode/bugfix-21174
[Bug 21174] Ensure "Sample Stacks" stack does show up in menu "Windows"
2 parents 097adc1 + 75f7b92 commit a013f73

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

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" 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" then
176+
if revIDEStackIsIDEWindow(tStackName) then
177177
put the title of tStack into tStackName
178178
end if
179179

notes/bugfix-21174.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure "Sample Stacks" window does show up in menu "Windows"

0 commit comments

Comments
 (0)