diff options
Diffstat (limited to 'pkg/gui/extras_panel.go')
-rw-r--r-- | pkg/gui/extras_panel.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/gui/extras_panel.go b/pkg/gui/extras_panel.go new file mode 100644 index 000000000..976cf5b43 --- /dev/null +++ b/pkg/gui/extras_panel.go @@ -0,0 +1,15 @@ +package gui + +func (gui *Gui) handleCreateExtrasMenuPanel() error { + menuItems := []*menuItem{ + { + displayString: "Toggle show/hide command log", + onPress: func() error { + gui.ShowExtrasWindow = !gui.ShowExtrasWindow + return nil + }, + }, + } + + return gui.createMenu(gui.Tr.DiffingMenuTitle, menuItems, createMenuOptions{showCancel: true}) +} |