1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

fix warnings

This commit is contained in:
bbedward
2025-08-07 17:33:15 -04:00
parent d84e48f5dd
commit 4523528d77
2 changed files with 4 additions and 4 deletions

View File

@@ -320,7 +320,7 @@ DankModal {
spacing: itemSpacing
focus: true
interactive: true
cacheBuffer: Math.min(height * 2, 1000)
cacheBuffer: Math.max(0, Math.min(height * 2, 1000))
reuseItems: true
onCurrentIndexChanged: {
@@ -496,7 +496,7 @@ DankModal {
rightMargin: leftMargin
focus: true
interactive: true
cacheBuffer: Math.min(height * 2, 1000)
cacheBuffer: Math.max(0, Math.min(height * 2, 1000))
reuseItems: true
onCurrentIndexChanged: {

View File

@@ -405,7 +405,7 @@ PanelWindow {
spacing: itemSpacing
focus: true
interactive: true
cacheBuffer: Math.min(height * 2, 1000)
cacheBuffer: Math.max(0, Math.min(height * 2, 1000))
reuseItems: true
onCurrentIndexChanged: {
@@ -581,7 +581,7 @@ PanelWindow {
rightMargin: leftMargin
focus: true
interactive: true
cacheBuffer: Math.min(height * 2, 1000)
cacheBuffer: Math.max(0, Math.min(height * 2, 1000))
reuseItems: true
onCurrentIndexChanged: {