1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-09-16 09:16:26 +02:00

Replace CurrentPopupContexts() with Context().CurrentPopup()

This commit is contained in:
Stefan Haller
2024-08-08 10:34:06 +02:00
parent 3a8b97841f
commit f30387e7f5
4 changed files with 2 additions and 6 deletions

View File

@@ -57,7 +57,6 @@ type IGuiCommon interface {
RunSubprocess(cmdObj oscommands.ICmdObj) (bool, error)
RunSubprocessAndRefresh(oscommands.ICmdObj) error
CurrentPopupContexts() []Context
IsCurrentContext(Context) bool
// TODO: replace the above context-based methods with just using Context() e.g. replace PushContext() with Context().Push()
Context() IContextMgr

View File

@@ -282,6 +282,7 @@ type IContextMgr interface {
Current() Context
CurrentStatic() Context
CurrentSide() Context
CurrentPopup() []Context
IsCurrent(c Context) bool
ForEach(func(Context))
AllList() []IListContext