1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

blurred wallpaper: defer update disabling much longer

This commit is contained in:
bbedward
2026-02-28 15:39:57 -05:00
parent 4bcd786be3
commit 9909b665cd

View File

@@ -85,7 +85,8 @@ Variants {
}
Component.onCompleted: {
renderSettleTimer.restart();
if (typeof blurWallpaperWindow.updatesEnabled !== "undefined")
blurWallpaperWindow.updatesEnabled = Qt.binding(() => root.effectActive || root._renderSettling || currentWallpaper.status === Image.Loading || nextWallpaper.status === Image.Loading);
isInitialized = true;
}
@@ -94,7 +95,6 @@ Variants {
readonly property bool transitioning: transitionAnimation.running
property bool effectActive: false
property bool _renderSettling: true
property bool _updatesOptimized: false
property bool useNextForEffect: false
Connections {
@@ -109,14 +109,8 @@ Variants {
Timer {
id: renderSettleTimer
interval: 100
onTriggered: {
root._renderSettling = false;
if (!root._updatesOptimized && typeof blurWallpaperWindow.updatesEnabled !== "undefined") {
root._updatesOptimized = true;
blurWallpaperWindow.updatesEnabled = Qt.binding(() => root.effectActive || root._renderSettling || currentWallpaper.status === Image.Loading || nextWallpaper.status === Image.Loading);
}
}
interval: 1000
onTriggered: root._renderSettling = false
}
onSourceChanged: {