1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -05:00

bar: bind widget refresh to dpr changes

This commit is contained in:
bbedward
2025-10-15 14:43:47 -04:00
parent 83564bd03f
commit 3c531dc2ec

View File

@@ -97,9 +97,9 @@ Item {
if (SettingsData.forceStatusBarLayoutRefresh) { if (SettingsData.forceStatusBarLayoutRefresh) {
SettingsData.forceStatusBarLayoutRefresh.connect(() => { SettingsData.forceStatusBarLayoutRefresh.connect(() => {
Qt.callLater(() => { Qt.callLater(() => {
stackLoader.visible = false stackContainer.visible = false
Qt.callLater(() => { Qt.callLater(() => {
stackLoader.visible = true stackContainer.visible = true
}) })
}) })
}) })
@@ -135,6 +135,17 @@ Item {
} }
function forceWidgetRefresh() { function forceWidgetRefresh() {
stackContainer.visible = false
Qt.callLater(() => {
stackContainer.visible = true
})
}
Connections {
target: barWindow
function on_DprChanged() {
Qt.callLater(forceWidgetRefresh)
}
} }
function updateGpuTempConfig() { function updateGpuTempConfig() {