1
0
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:
Stefan Haller
2025-01-02 19:46:16 +01:00
parent 9de8d17d84
commit 928e76a82f
2 changed files with 16 additions and 9 deletions

View File

@ -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{}