diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-01 00:24:57 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-02 11:00:15 +1100 |
commit | 872cf0d726485fe1f64788ced180682486d2514d (patch) | |
tree | 73e5998140d8aa1684cdb22559764302f91c5855 /pkg/gui/window.go | |
parent | af09223dd5cd50c5b2a2fe846632a7a0a6e02e1e (diff) |
hide commit files view upon losing focus because you probably don't want it lingering anyway
Diffstat (limited to 'pkg/gui/window.go')
-rw-r--r-- | pkg/gui/window.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/window.go b/pkg/gui/window.go index c3fffc637..4af20f795 100644 --- a/pkg/gui/window.go +++ b/pkg/gui/window.go @@ -40,3 +40,9 @@ func (gui *Gui) resetWindowForView(viewName string) { // we assume here that the window contains as its default view a view with the same name as the window gui.State.WindowViewNameMap[window] = window } + +func (gui *Gui) renderWindow(window string) error { + viewName := gui.getViewNameForWindow(window) + gui.Log.Warn(viewName) + return gui.rerenderView(viewName) +} |