1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

go mod tidy

This commit is contained in:
bbedward
2026-01-26 16:44:32 -05:00
parent 08cc076a4c
commit 1cdbd01748
3 changed files with 34 additions and 25 deletions

View File

@@ -79,7 +79,7 @@ Item {
}
Component.onCompleted: {
if (entryType !== "image") {
if (entryType !== "image" || listView.height <= 0) {
return;
}
@@ -95,8 +95,9 @@ Item {
Connections {
target: listView
function onContentYChanged() {
if (entryType !== "image") {
function checkVisibility() {
if (entryType !== "image" || listView.height <= 0) {
return;
}
@@ -110,6 +111,14 @@ Item {
thumbnailImage.tryLoadImage();
}
}
function onContentYChanged() {
checkVisibility();
}
function onHeightChanged() {
checkVisibility();
}
}
}