mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
fix: Update rare TopBar visibility loadout on certain hardware
This commit is contained in:
@@ -47,6 +47,26 @@ PanelWindow {
|
||||
|
||||
// Configure GPU temperature monitoring based on widget configuration
|
||||
updateGpuTempConfig()
|
||||
|
||||
// Force widget initialization after brief delay to ensure services are loaded
|
||||
Qt.callLater(() => {
|
||||
Qt.callLater(() => {
|
||||
forceWidgetRefresh()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function forceWidgetRefresh() {
|
||||
// Force reload of all widget sections to handle race condition on desktop hardware
|
||||
if (leftSection) leftSection.visible = false
|
||||
if (centerSection) centerSection.visible = false
|
||||
if (rightSection) rightSection.visible = false
|
||||
|
||||
Qt.callLater(() => {
|
||||
if (leftSection) leftSection.visible = true
|
||||
if (centerSection) centerSection.visible = true
|
||||
if (rightSection) rightSection.visible = true
|
||||
})
|
||||
}
|
||||
|
||||
function updateGpuTempConfig() {
|
||||
@@ -371,7 +391,7 @@ PanelWindow {
|
||||
active: topBarContent.getWidgetVisible(model.widgetId)
|
||||
sourceComponent: topBarContent.getWidgetComponent(model.widgetId)
|
||||
opacity: topBarContent.getWidgetEnabled(model.enabled) ? 1 : 0
|
||||
asynchronous: true
|
||||
asynchronous: false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -492,7 +512,7 @@ PanelWindow {
|
||||
active: topBarContent.getWidgetVisible(model.widgetId)
|
||||
sourceComponent: topBarContent.getWidgetComponent(model.widgetId)
|
||||
opacity: topBarContent.getWidgetEnabled(model.enabled) ? 1 : 0
|
||||
asynchronous: true
|
||||
asynchronous: false
|
||||
|
||||
onLoaded: {
|
||||
if (item) {
|
||||
@@ -539,7 +559,7 @@ PanelWindow {
|
||||
active: topBarContent.getWidgetVisible(model.widgetId)
|
||||
sourceComponent: topBarContent.getWidgetComponent(model.widgetId)
|
||||
opacity: topBarContent.getWidgetEnabled(model.enabled) ? 1 : 0
|
||||
asynchronous: true
|
||||
asynchronous: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user