1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

use PopContext

This commit is contained in:
Jesse Duffield
2022-02-22 20:17:26 +11:00
parent ecaff7fc6c
commit 120078f011
6 changed files with 9 additions and 9 deletions

View File

@ -17,7 +17,7 @@ func (gui *Gui) handleCreateExtrasMenuPanel() error {
OnPress: func() error {
currentContext := gui.currentStaticContext()
if gui.ShowExtrasWindow && currentContext.GetKey() == context.COMMAND_LOG_CONTEXT_KEY {
if err := gui.returnFromContext(); err != nil {
if err := gui.c.PopContext(); err != nil {
return err
}
}