aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-02-19 23:48:34 +0200
committerTulir Asokan <tulir@maunium.net>2020-02-19 23:48:34 +0200
commit55f58f2875d68a47af4c36fac140fb06ecc37bfd (patch)
treec2fb069bc45e3d35562d8e2819a6d26ef94b288b /ui
parent78f7a7aadc1ab2519198ab5d62f4d370e470dbf2 (diff)
Fix some issues when logging out
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 858e407..c22a154 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -105,6 +105,10 @@ func (ui *GomuksUI) SetView(name View) {
if ok {
focusable.Focus()
}
+ if ui.app.Screen() != nil {
+ ui.app.Screen().Clear()
+ ui.Render()
+ }
}
func (ui *GomuksUI) MainView() ifc.MainView {