Temp fix for buffer destruction bug

This commit is contained in:
Digital Artifex
2025-08-23 09:19:27 -04:00
parent fc64109919
commit f30f517d81
3 changed files with 74 additions and 52 deletions

View File

@@ -40,6 +40,7 @@ WallpaperItem
{
property int resolution_x: wallpaper.configuration.resolution_x
property int resolution_y: wallpaper.configuration.resolution_y
property string shaderPack: wallpaper.configuration.shader_package
property bool changing: false
anchors.fill: parent
@@ -93,6 +94,7 @@ WallpaperItem
}
}
// band-aid section
onResolution_xChanged: () =>
{
if(changing)
@@ -126,5 +128,22 @@ WallpaperItem
changing = false
}
onShaderPackChanged: () =>
{
if(changing)
return;
changing = true
pageLoader.sourceComponent = null
if(wallpaper.configuration.komplex_mode === 0)
pageLoader.sourceComponent = shaderToyContent
else
pageLoader.sourceComponent = packContent
changing = false
}
}
}