From 39c5410802b40076c1a0c0d6ffdcb4cf787968c7 Mon Sep 17 00:00:00 2001 From: mkelley88 <5567324+mkelley88@users.noreply.github.com> Date: Sun, 25 Feb 2024 09:15:33 -0500 Subject: [PATCH] Fixed member online status ScrollArea has been depricated, changed to ScrollView --- package/contents/ui/main.qml | 12 +++++++++++- zerotier.plasmoid | Bin 40725 -> 40908 bytes 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package/contents/ui/main.qml b/package/contents/ui/main.qml index 205fe3b..662c45c 100644 --- a/package/contents/ui/main.qml +++ b/package/contents/ui/main.qml @@ -6,6 +6,7 @@ import QtQuick.Controls 2.0 import org.kde.plasma.plasmoid 2.0 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 Item { @@ -81,6 +82,15 @@ Item { console.log("NETWORK ONLINE COUNT:",onlinecount) zeroRequest("network/"+netw+"/member", function(res) { for (let dat of res) { + // Subtract timestamps to determine how long ago member was seen and convert to seconds + var lastseen = (dat.clock - dat.lastOnline)/1000 + // console.log("MEMBER LAST SEEN: ", lastseen + " seconds ago" ) + // If member has not been seen for more than 120 seconds, consider offline. + if(lastseen < 120){ + dat.online = true + }else{ + dat.online = false + } if (plasmoid.configuration.show){ if(!dat.online){ continue;} @@ -245,7 +255,7 @@ Item { } } - PlasmaExtras.ScrollArea { + PlasmaComponents3.ScrollView { anchors.fill: parent ListView { diff --git a/zerotier.plasmoid b/zerotier.plasmoid index c47fa724350ff7c419a8d05f3a9432d1b604b0b4..48f0052beffd07e4c8cd3e6ea5220a03bad97895 100644 GIT binary patch delta 4014 zcma)92{_bi`~DeY4Q0u07%>RR79AXou{PQFC5(MvvSc|KhGeanBzux2%2Gu37!qH{@ z(|~7>NaRSqg(T>*i95Ta9PNF?3=OCN(q9z#{amaB>A&Don^`GRAGN%tY-)lXSAvT1 zBF5~A>nA-QL7EXFVJ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