diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-21 20:08:42 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 9b42cd22144c4bf590513d7ad9dd37e922268889 (patch) | |
tree | f9c5cef57a11f423b30900a53e32d215ba1d5738 /pkg/gui/window.go | |
parent | 2d90e1e8ee5ccb3d2acd8678e68137645c9e65bd (diff) |
slightly better
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 8d2f3ff18..8931ff07b 100644 --- a/pkg/gui/window.go +++ b/pkg/gui/window.go @@ -34,3 +34,9 @@ func (gui *Gui) setViewAsActiveForWindow(viewName string) { func (gui *Gui) currentWindow() string { return gui.getWindowForViewName(gui.currentViewName()) } + +func (gui *Gui) resetWindowForView(viewName string) { + window := gui.getWindowForViewName(viewName) + // 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 +} |