diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-05-08 14:23:32 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-05-08 14:26:18 +1000 |
commit | 6f8063217ddf132dca36b75affaa7f7273f89d9d (patch) | |
tree | 871c1b76adf464b11fe04c43bbd2a4a7ac5d452e /pkg/gui/extras_panel.go | |
parent | 125e948d82c33226f92a1ebe18361633116370d3 (diff) |
rename displayString to label for menu items
Diffstat (limited to 'pkg/gui/extras_panel.go')
-rw-r--r-- | pkg/gui/extras_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/extras_panel.go b/pkg/gui/extras_panel.go index 6033f8516..c36f12a66 100644 --- a/pkg/gui/extras_panel.go +++ b/pkg/gui/extras_panel.go @@ -13,7 +13,7 @@ func (gui *Gui) handleCreateExtrasMenuPanel() error { Title: gui.c.Tr.CommandLog, Items: []*types.MenuItem{ { - DisplayString: gui.c.Tr.ToggleShowCommandLog, + Label: gui.c.Tr.ToggleShowCommandLog, OnPress: func() error { currentContext := gui.currentStaticContext() if gui.ShowExtrasWindow && currentContext.GetKey() == context.COMMAND_LOG_CONTEXT_KEY { @@ -29,8 +29,8 @@ func (gui *Gui) handleCreateExtrasMenuPanel() error { }, }, { - DisplayString: gui.c.Tr.FocusCommandLog, - OnPress: gui.handleFocusCommandLog, + Label: gui.c.Tr.FocusCommandLog, + OnPress: gui.handleFocusCommandLog, }, }, }) |