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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user