1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 14:05:38 -05:00

Fix some log warnings

This commit is contained in:
bbedward
2025-07-14 16:11:40 -04:00
parent 6f1e23437c
commit 9f3358b253
3 changed files with 16 additions and 10 deletions

View File

@@ -192,14 +192,18 @@ PanelWindow {
smooth: true
asynchronous: true
mipmap: true
cache: false
cache: true
property string lastLoggedSource: ""
onStatusChanged: {
console.log("Profile image status:", status, "source:", source)
if (status === Image.Ready) {
console.log("Image loaded successfully, size:", sourceSize.width + "x" + sourceSize.height)
} else if (status === Image.Error) {
console.log("Image failed to load")
if (source !== lastLoggedSource && (status === Image.Ready || status === Image.Error)) {
lastLoggedSource = source
if (status === Image.Ready) {
console.log("Profile image loaded successfully, size:", sourceSize.width + "x" + sourceSize.height)
} else if (status === Image.Error) {
console.log("Profile image failed to load:", source)
}
}
}
}