From 68e80b82cd46e42670a46e769d8ff0306f8b1939 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 11 Apr 2023 16:01:52 +0200 Subject: [PATCH] NSCv3: update status on connection/disconnection --- .../info/nightscout/plugins/sync/nsclientV3/NSClientV3Plugin.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclientV3/NSClientV3Plugin.kt b/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclientV3/NSClientV3Plugin.kt index 54bfdb9bdc..43b1cd2802 100644 --- a/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclientV3/NSClientV3Plugin.kt +++ b/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclientV3/NSClientV3Plugin.kt @@ -389,6 +389,7 @@ class NSClientV3Plugin @Inject constructor( rxBus.send(EventNSClientNewLog("◄ WS", "Auth failed")) false } + rxBus.send(EventNSClientUpdateGuiStatus()) }) } } @@ -420,6 +421,7 @@ class NSClientV3Plugin @Inject constructor( rxBus.send(EventNSClientNewLog("◄ WS", "disconnect storage event")) wsConnected = false initialLoadFinished = false + rxBus.send(EventNSClientUpdateGuiStatus()) } private val onDisconnectAlarm = Emitter.Listener { args ->