From 3a8b97841f1f3a872603a28ec70d552bfec5f15e Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 8 Aug 2024 10:32:19 +0200 Subject: [PATCH] Rename PopupContexts() to CurrentPopup() ... for consistency with CurrentSide(). --- pkg/gui/context.go | 2 +- pkg/gui/gui_common.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 6ee055f80..d44c1c66f 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -362,7 +362,7 @@ func (self *ContextMgr) ContextForKey(key types.ContextKey) types.Context { return nil } -func (self *ContextMgr) PopupContexts() []types.Context { +func (self *ContextMgr) CurrentPopup() []types.Context { self.RLock() defer self.RUnlock() diff --git a/pkg/gui/gui_common.go b/pkg/gui/gui_common.go index 385a86d37..332684845 100644 --- a/pkg/gui/gui_common.go +++ b/pkg/gui/gui_common.go @@ -46,7 +46,7 @@ func (self *guiCommon) RunSubprocess(cmdObj oscommands.ICmdObj) (bool, error) { } func (self *guiCommon) CurrentPopupContexts() []types.Context { - return self.gui.State.ContextMgr.PopupContexts() + return self.gui.State.ContextMgr.CurrentPopup() } func (self *guiCommon) IsCurrentContext(c types.Context) bool {