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

Commit 66ad21c

Browse files
Merge pull request #1655 from livecode/bugfix-17485
[Bug 17485] Allow accessing Image/Object Library from LC menubar
2 parents f632940 + 074a751 commit 66ad21c

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Toolset/palettes/menubar/revmenubar.livecodescript

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,6 +1864,8 @@ end revMenubarViewMenu
18641864
private function revMenubarDevelopmentMenu pContext
18651865
global gREVSuppressErrors, gREVSuppressMessages
18661866
local tDevelopment
1867+
put "Object Library" & return after tDevelopment
1868+
put "Image Library" & return after tDevelopment
18671869
put "Plugins" & return after tDevelopment
18681870
if sPluginMenuText is not empty then
18691871
put sPluginMenuText & return after tDevelopment
@@ -2961,6 +2963,18 @@ on revMenubarDevelopmentMenuPick pWhich
29612963
case "Simulator Version"
29622964
revIDESetTestTarget item 2 of pWhich
29632965
break
2966+
case "Object Library"
2967+
go cd 1 of stack "revImageLibrary" as modeless
2968+
lock messages
2969+
set the menuHistory of btn "tabs" of stack "RevImageLibrary" to 1
2970+
unlock messages
2971+
break
2972+
case "Image Library"
2973+
go cd 2 of stack "revImageLibrary" as modeless
2974+
lock messages
2975+
set the menuHistory of btn "tabs" of stack "RevImageLibrary" to 2
2976+
unlock messages
2977+
break
29642978
case "Plugins"
29652979
local tPicked
29662980
set the itemDel to "|"

notes/bugfix-17485.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Allow accessing Image Library and Object Library from LiveCode menubar

0 commit comments

Comments
 (0)