From 98b6c1474579d93a41318eea2bf6dd6318a6d085 Mon Sep 17 00:00:00 2001 From: livecodepanos Date: Wed, 31 Oct 2018 13:45:58 +0200 Subject: [PATCH 1/2] [17683] Ensure Start Center stays open when a Plugin opens on startup --- .../libraries/revidelibrary.8.livecodescript | 22 ++++++++++++------- .../revStartCenterBehavior.livecodescript | 10 ++++++++- 2 files changed, 23 insertions(+), 9 deletions(-) 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..880b15ca92 100644 --- a/Toolset/palettes/start center/revStartCenterBehavior.livecodescript +++ b/Toolset/palettes/start center/revStartCenterBehavior.livecodescript @@ -93,12 +93,20 @@ 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 command startCenterClose + breakpoint close me end startCenterClose From a89d73c89d2706bfb0835a8eb69db57fceeceda8 Mon Sep 17 00:00:00 2001 From: livecodepanos Date: Wed, 31 Oct 2018 13:48:14 +0200 Subject: [PATCH 2/2] [17683] Added bugfix note --- .../palettes/start center/revStartCenterBehavior.livecodescript | 1 - notes/bugfix-17683.md | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 notes/bugfix-17683.md diff --git a/Toolset/palettes/start center/revStartCenterBehavior.livecodescript b/Toolset/palettes/start center/revStartCenterBehavior.livecodescript index 880b15ca92..f55c4a7e4b 100644 --- a/Toolset/palettes/start center/revStartCenterBehavior.livecodescript +++ b/Toolset/palettes/start center/revStartCenterBehavior.livecodescript @@ -106,7 +106,6 @@ on ideOpenStack pTarget end ideOpenStack command startCenterClose - breakpoint close me end startCenterClose 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