mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-05 21:15:38 -05:00
bar: bind widget refresh to dpr changes
This commit is contained in:
@@ -97,9 +97,9 @@ Item {
|
||||
if (SettingsData.forceStatusBarLayoutRefresh) {
|
||||
SettingsData.forceStatusBarLayoutRefresh.connect(() => {
|
||||
Qt.callLater(() => {
|
||||
stackLoader.visible = false
|
||||
stackContainer.visible = false
|
||||
Qt.callLater(() => {
|
||||
stackLoader.visible = true
|
||||
stackContainer.visible = true
|
||||
})
|
||||
})
|
||||
})
|
||||
@@ -135,6 +135,17 @@ Item {
|
||||
}
|
||||
|
||||
function forceWidgetRefresh() {
|
||||
stackContainer.visible = false
|
||||
Qt.callLater(() => {
|
||||
stackContainer.visible = true
|
||||
})
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: barWindow
|
||||
function on_DprChanged() {
|
||||
Qt.callLater(forceWidgetRefresh)
|
||||
}
|
||||
}
|
||||
|
||||
function updateGpuTempConfig() {
|
||||
|
||||
Reference in New Issue
Block a user