diff --git a/sailfish/qml/components/RemoteImage.qml b/sailfish/qml/components/RemoteImage.qml index 8ee9d6e..ccce938 100644 --- a/sailfish/qml/components/RemoteImage.qml +++ b/sailfish/qml/components/RemoteImage.qml @@ -57,7 +57,7 @@ SilicaItem { asynchronous: true fillMode: root.fillMode opacity: 1 - source: alreadyLoaded || [PageStatus.Active, PageStatus.Deactivating].indexOf(__parentPage.status) >= 0 ? root.source : "" + source: alreadyLoaded || __parentPage && [PageStatus.Active, PageStatus.Deactivating].indexOf(__parentPage.status) >= 0 ? root.source : "" onStatusChanged: { if (status == Image.Ready) { alreadyLoaded = true @@ -81,7 +81,7 @@ SilicaItem { fillMode: root.fillMode sourceSize.height: 32 sourceSize.width: 32 * aspectRatio - source: "image://blurhash/" + encodeURIComponent(blurhash) + source: blurhash.length > 0 ? "image://blurhash/" + encodeURIComponent(blurhash) : "" opacity: 0 } @@ -104,12 +104,6 @@ SilicaItem { source: fallbackImage ? fallbackImage : "image://theme/icon-m-question" } - Text { - id: name - text: state - color: Qt.red - } - onStateChanged: console.log("New state: " + state + ", blurhash: '" + blurhash + "'") states: [ State { name: "fallback" @@ -150,7 +144,6 @@ SilicaItem { while (item != null) { if ("__silica_page" in item) { __parentPage = item - console.log("Found parent " + item) break; } item = item.parent diff --git a/sailfish/qml/pages/MainPage.qml b/sailfish/qml/pages/MainPage.qml index bf4fcbb..aedd264 100644 --- a/sailfish/qml/pages/MainPage.qml +++ b/sailfish/qml/pages/MainPage.qml @@ -125,12 +125,11 @@ Page { id: userItemModel apiClient: ApiClient parentId: model.id - limit: 12 + limit: 16 } Connections { target: mediaLibraryModel onStatusChanged: { - console.log("MediaLibraryModel status " + status) if (status == ApiModel.Ready) { userItemModel.reload() }