ui/app: remove redundant redraw check

Now that the input router triggers a redraw when a focus event is
added, it is no longer necessary to check for that condition in
Window.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-21 12:53:28 +02:00
parent 3f7735ccdf
commit b46bad09bd
-4
View File
@@ -107,10 +107,6 @@ func (w *Window) setTextInput(s key.TextInputState) {
if s != w.inputState && (s == key.TextInputClose || s == key.TextInputOpen) {
w.driver.setTextInput(s)
}
if s == key.TextInputFocus {
w.setNextFrame(time.Time{})
w.updateAnimation()
}
w.inputState = s
}