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 {