Temp fix for buffer destruction bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user