From 5cc2aa76d0288390f1de4512d4dcff1ab4ac3806 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Tue, 25 Jul 2023 17:20:16 +0800 Subject: Do not sync when offline --- contents/ui/main.qml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'contents/ui/main.qml') diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 8a5d7f0..67857d4 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -7,6 +7,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.components 3.0 as PlasmaComponents3 import org.kde.plasma.extras 2.0 as PlasmaExtras +import org.kde.plasma.networkmanagement 0.2 as PlasmaNM import "kanvas.js" as Kanvas @@ -20,6 +21,10 @@ Item { readonly property string oauth2Token: plasmoid.configuration.oauth2Token readonly property string authHeader: `Bearer ${oauth2Token}` + PlasmaNM.NetworkStatus { + id: networkStatus + } + // sync on initialization Component.onCompleted: Kanvas.syncCanvas() -- cgit v1.2.3