From ba1c1ea1a66bc73fef1d51a9bfc2b53414c81be9 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 16 Apr 2023 13:08:39 +0200 Subject: 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). --- main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'main.go') 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() } } } -- cgit v1.2.3-70-g09d2