mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Rename PopupContexts() to CurrentPopup()
... for consistency with CurrentSide().
This commit is contained in:
parent
df3afb1b89
commit
3a8b97841f
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue