diff options
author | xengineering <me@xengineering.eu> | 2023-04-16 13:08:39 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-04-16 13:08:39 +0200 |
commit | ba1c1ea1a66bc73fef1d51a9bfc2b53414c81be9 (patch) | |
tree | e6cb7338ac3bb0867a7e74ec28273d06da0b222b /main.go | |
parent | 59c7f02ad05af0223a08f47e3193c331a86445d5 (diff) | |
download | limox-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.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -109,6 +109,7 @@ func (l *Limox) run() error { default: log.Fatalf("Unknown event type '%s'.\n", reflect.TypeOf(ev)) } + l.Window.Invalidate() } } } |