mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Disable KeybindingsMenu using a DisabledReason when a panel is open
This hides it from the options map at the bottom of the screen.
This commit is contained in:
@ -13,11 +13,6 @@ type OptionsMenuAction struct {
|
||||
|
||||
func (self *OptionsMenuAction) Call() error {
|
||||
ctx := self.c.Context().Current()
|
||||
// Don't show menu while displaying popup.
|
||||
if ctx.GetKind() == types.PERSISTENT_POPUP || ctx.GetKind() == types.TEMPORARY_POPUP {
|
||||
return nil
|
||||
}
|
||||
|
||||
local, global, navigation := self.getBindings(ctx)
|
||||
|
||||
menuItems := []*types.MenuItem{}
|
||||
|
Reference in New Issue
Block a user