diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 12:12:54 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 17:07:49 +1000 |
commit | 4f03d7733ab186d357064f343915ac48ca059940 (patch) | |
tree | 258437fad6568feaafe1c4a19e2a47c66fc92c5c /pkg/gui/extras_panel.go | |
parent | e3a14d546aa31851e6ab26dcdb21336ad94365c7 (diff) |
allow showing, hiding, and scrolling the extras panel
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}) +} |