mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 00:12:50 -05:00
fix spacer reactivity
This commit is contained in:
@@ -107,6 +107,19 @@ Singleton {
|
|||||||
signal workspaceIconsUpdated
|
signal workspaceIconsUpdated
|
||||||
|
|
||||||
function initializeListModels() {
|
function initializeListModels() {
|
||||||
|
// ! Hack-ish to add all properties to the listmodel once
|
||||||
|
// ! allows the properties to be bound on new widget addtions
|
||||||
|
var dummyItem = {
|
||||||
|
"widgetId": "dummy",
|
||||||
|
"enabled": true,
|
||||||
|
"size": 20,
|
||||||
|
"selectedGpuIndex": 0,
|
||||||
|
"pciId": ""
|
||||||
|
}
|
||||||
|
leftWidgetsModel.append(dummyItem)
|
||||||
|
centerWidgetsModel.append(dummyItem)
|
||||||
|
rightWidgetsModel.append(dummyItem)
|
||||||
|
|
||||||
updateListModel(leftWidgetsModel, topBarLeftWidgets)
|
updateListModel(leftWidgetsModel, topBarLeftWidgets)
|
||||||
updateListModel(centerWidgetsModel, topBarCenterWidgets)
|
updateListModel(centerWidgetsModel, topBarCenterWidgets)
|
||||||
updateListModel(rightWidgetsModel, topBarRightWidgets)
|
updateListModel(rightWidgetsModel, topBarRightWidgets)
|
||||||
@@ -658,10 +671,8 @@ Singleton {
|
|||||||
}
|
}
|
||||||
if (size !== undefined)
|
if (size !== undefined)
|
||||||
item.size = size
|
item.size = size
|
||||||
|
|
||||||
if (selectedGpuIndex !== undefined)
|
if (selectedGpuIndex !== undefined)
|
||||||
item.selectedGpuIndex = selectedGpuIndex
|
item.selectedGpuIndex = selectedGpuIndex
|
||||||
|
|
||||||
if (pciId !== undefined)
|
if (pciId !== undefined)
|
||||||
item.pciId = pciId
|
item.pciId = pciId
|
||||||
|
|
||||||
|
|||||||
@@ -422,6 +422,7 @@ PanelWindow {
|
|||||||
opacity: topBarContent.getWidgetEnabled(
|
opacity: topBarContent.getWidgetEnabled(
|
||||||
model.enabled) ? 1 : 0
|
model.enabled) ? 1 : 0
|
||||||
asynchronous: false
|
asynchronous: false
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -601,6 +602,7 @@ PanelWindow {
|
|||||||
opacity: topBarContent.getWidgetEnabled(
|
opacity: topBarContent.getWidgetEnabled(
|
||||||
model.enabled) ? 1 : 0
|
model.enabled) ? 1 : 0
|
||||||
asynchronous: false
|
asynchronous: false
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user