summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-04-16 13:08:39 +0200
committerxengineering <me@xengineering.eu>2023-04-16 13:08:39 +0200
commitba1c1ea1a66bc73fef1d51a9bfc2b53414c81be9 (patch)
treee6cb7338ac3bb0867a7e74ec28273d06da0b222b /main.go
parent59c7f02ad05af0223a08f47e3193c331a86445d5 (diff)
downloadlimox-ba1c1ea1a66bc73fef1d51a9bfc2b53414c81be9.tar
limox-ba1c1ea1a66bc73fef1d51a9bfc2b53414c81be9.tar.zst
limox-ba1c1ea1a66bc73fef1d51a9bfc2b53414c81be9.zip
Invalidate UI window on XmppEvent
If an XmppEvent occurs the the State member of the Limox struct was updated. This does not mean that the UI gets re-drawn. This led to a situation where the label on the main button was not updated on XmppEvent(s).
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 2803e68..6c33ad4 100644
--- a/main.go
+++ b/main.go
@@ -109,6 +109,7 @@ func (l *Limox) run() error {
default:
log.Fatalf("Unknown event type '%s'.\n", reflect.TypeOf(ev))
}
+ l.Window.Invalidate()
}
}
}