mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-13 01:02:18 -04:00
blurred wallpaper: defer update disabling much longer
This commit is contained in:
@@ -85,7 +85,8 @@ Variants {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
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;
|
isInitialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,7 +95,6 @@ Variants {
|
|||||||
readonly property bool transitioning: transitionAnimation.running
|
readonly property bool transitioning: transitionAnimation.running
|
||||||
property bool effectActive: false
|
property bool effectActive: false
|
||||||
property bool _renderSettling: true
|
property bool _renderSettling: true
|
||||||
property bool _updatesOptimized: false
|
|
||||||
property bool useNextForEffect: false
|
property bool useNextForEffect: false
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
@@ -109,14 +109,8 @@ Variants {
|
|||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: renderSettleTimer
|
id: renderSettleTimer
|
||||||
interval: 100
|
interval: 1000
|
||||||
onTriggered: {
|
onTriggered: root._renderSettling = false
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onSourceChanged: {
|
onSourceChanged: {
|
||||||
|
|||||||
Reference in New Issue
Block a user