mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-15 14:55:48 +00:00
minor changes
This commit is contained in:
@ -59,8 +59,12 @@ Item {
|
||||
PlasmaCore.DataSource {
|
||||
id: systemmonitorDE
|
||||
engine: "systemmonitor"
|
||||
connectedSources: ["active", "current", "extip4", "extip6", "interfaces", "intip4", "intip6", "profiles", "status"]
|
||||
interval: plasmoid.configuration.interval
|
||||
|
||||
Component.onCompleted: {
|
||||
if (debug) console.log("[main::onCompleted] : Connect sources to systemmonitor")
|
||||
|
||||
systemmonitorDE.connectAllSources(main, plasmoid.configuration.interval)
|
||||
}
|
||||
|
||||
onNewData: {
|
||||
if (debug) console.log("[main::onNewData] : Update source " + sourceName)
|
||||
@ -74,8 +78,12 @@ Item {
|
||||
PlasmaCore.DataSource {
|
||||
id: extsysmonDE
|
||||
engine: "ext-sysmon"
|
||||
connectedSources: ["update"]
|
||||
interval: plasmoid.configuration.interval
|
||||
|
||||
Component.onCompleted: {
|
||||
if (debug) console.log("[main::onCompleted] : Connect sources to ext-sysmon")
|
||||
|
||||
extsysmonDE.connectAllSources(main, plasmoid.configuration.interval)
|
||||
}
|
||||
|
||||
onNewData: {
|
||||
if (debug) console.log("[main::onNewData] : Update source " + sourceName)
|
||||
@ -84,6 +92,17 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
PlasmaCore.DataSource {
|
||||
id: timeDE
|
||||
engine: "time"
|
||||
connectedSources: ["Local"]
|
||||
interval: plasmoid.configuration.autoUpdateInterval
|
||||
|
||||
onNewData: {
|
||||
if (debug) console.log("[main::onNewData] : Update source " + sourceName)
|
||||
}
|
||||
}
|
||||
|
||||
// ui
|
||||
Grid {
|
||||
id: mainGrid
|
||||
|
Reference in New Issue
Block a user