mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
Add disk usage component for TopBar and ControlCenter
This commit is contained in:
@@ -171,7 +171,8 @@ Singleton {
|
||||
"enabled": true,
|
||||
"size": 20,
|
||||
"selectedGpuIndex": 0,
|
||||
"pciId": ""
|
||||
"pciId": "",
|
||||
"mountPath": "/"
|
||||
}
|
||||
leftWidgetsModel.append(dummyItem)
|
||||
centerWidgetsModel.append(dummyItem)
|
||||
@@ -741,6 +742,7 @@ Singleton {
|
||||
var size = typeof order[i] === "string" ? undefined : order[i].size
|
||||
var selectedGpuIndex = typeof order[i] === "string" ? undefined : order[i].selectedGpuIndex
|
||||
var pciId = typeof order[i] === "string" ? undefined : order[i].pciId
|
||||
var mountPath = typeof order[i] === "string" ? undefined : order[i].mountPath
|
||||
var item = {
|
||||
"widgetId": widgetId,
|
||||
"enabled": enabled
|
||||
@@ -751,6 +753,8 @@ Singleton {
|
||||
item.selectedGpuIndex = selectedGpuIndex
|
||||
if (pciId !== undefined)
|
||||
item.pciId = pciId
|
||||
if (mountPath !== undefined)
|
||||
item.mountPath = mountPath
|
||||
|
||||
listModel.append(item)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user