mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-17 22:32:58 +02:00
Rename PopupContexts() to CurrentPopup()
... for consistency with CurrentSide().
This commit is contained in:
parent
df3afb1b89
commit
3a8b97841f
@ -362,7 +362,7 @@ func (self *ContextMgr) ContextForKey(key types.ContextKey) types.Context {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *ContextMgr) PopupContexts() []types.Context {
|
func (self *ContextMgr) CurrentPopup() []types.Context {
|
||||||
self.RLock()
|
self.RLock()
|
||||||
defer self.RUnlock()
|
defer self.RUnlock()
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ func (self *guiCommon) RunSubprocess(cmdObj oscommands.ICmdObj) (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *guiCommon) CurrentPopupContexts() []types.Context {
|
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 {
|
func (self *guiCommon) IsCurrentContext(c types.Context) bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user