diff --git a/Toolset/libraries/revidelibrary.8.livecodescript b/Toolset/libraries/revidelibrary.8.livecodescript index 636734d37c..8a598f5246 100644 --- a/Toolset/libraries/revidelibrary.8.livecodescript +++ b/Toolset/libraries/revidelibrary.8.livecodescript @@ -6516,14 +6516,7 @@ on revIDETogglePaletteView unlock screen end revIDETogglePaletteView -on revIDEPopupContextualMenu pTargets - dispatch "revMenubarPopupContextualMenu" to stack revIDEPaletteToStackName("menubar") with pTargets -end revIDEPopupContextualMenu - -local sPluginsA -on revIDEUpdatePlugins - global gREVStartupList, gREVShutdownlist, gREVDontLoadMenus - +function revIDEGetAllPlugins local tUserPlugins put revAbsoluteFolderListing(revEnvironmentUserPluginsPath()) into tUserPlugins @@ -6539,6 +6532,19 @@ on revIDEUpdatePlugins if tDevelopmentPlugins is not empty then put revCombineFilePaths(tFinal,tDevelopmentPlugins) into tFinal end if + return tFinal +end revIDEGetAllPlugins + +on revIDEPopupContextualMenu pTargets + dispatch "revMenubarPopupContextualMenu" to stack revIDEPaletteToStackName("menubar") with pTargets +end revIDEPopupContextualMenu + +local sPluginsA +on revIDEUpdatePlugins + global gREVStartupList, gREVShutdownlist, gREVDontLoadMenus + + local tFinal + put revIDEGetAllPlugins() into tFinal put empty into gREVStartupList put empty into gREVShutdownList diff --git a/Toolset/palettes/start center/revStartCenterBehavior.livecodescript b/Toolset/palettes/start center/revStartCenterBehavior.livecodescript index c39955a561..f55c4a7e4b 100644 --- a/Toolset/palettes/start center/revStartCenterBehavior.livecodescript +++ b/Toolset/palettes/start center/revStartCenterBehavior.livecodescript @@ -93,7 +93,14 @@ on ideOpenStack pTarget exit ideOpenStack end if - if the short name of ideStackOfObject(pTarget) is not the short name of me then + local tTargetStack + put the short name of ideStackOfObject(pTarget) into tTargetStack + + local tPlugins + put revIDEGetAllPlugins() into tPlugins + + if tTargetStack is not the short name of me and \ + the filename of stack tTargetStack is not among the lines of tPlugins then startCenterClose end if end ideOpenStack diff --git a/notes/bugfix-17683.md b/notes/bugfix-17683.md new file mode 100644 index 0000000000..06f06a7ad0 --- /dev/null +++ b/notes/bugfix-17683.md @@ -0,0 +1 @@ +# Ensure Start Center stays open when a Plugin opens on startup