mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-11-22 09:15:18 +00:00
Make components less chatty in logs
This commit is contained in:
parent
79d378c9ed
commit
5bdc8ee83d
|
@ -57,7 +57,7 @@ SilicaItem {
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
fillMode: root.fillMode
|
fillMode: root.fillMode
|
||||||
opacity: 1
|
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: {
|
onStatusChanged: {
|
||||||
if (status == Image.Ready) {
|
if (status == Image.Ready) {
|
||||||
alreadyLoaded = true
|
alreadyLoaded = true
|
||||||
|
@ -81,7 +81,7 @@ SilicaItem {
|
||||||
fillMode: root.fillMode
|
fillMode: root.fillMode
|
||||||
sourceSize.height: 32
|
sourceSize.height: 32
|
||||||
sourceSize.width: 32 * aspectRatio
|
sourceSize.width: 32 * aspectRatio
|
||||||
source: "image://blurhash/" + encodeURIComponent(blurhash)
|
source: blurhash.length > 0 ? "image://blurhash/" + encodeURIComponent(blurhash) : ""
|
||||||
opacity: 0
|
opacity: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,12 +104,6 @@ SilicaItem {
|
||||||
source: fallbackImage ? fallbackImage : "image://theme/icon-m-question"
|
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: [
|
states: [
|
||||||
State {
|
State {
|
||||||
name: "fallback"
|
name: "fallback"
|
||||||
|
@ -150,7 +144,6 @@ SilicaItem {
|
||||||
while (item != null) {
|
while (item != null) {
|
||||||
if ("__silica_page" in item) {
|
if ("__silica_page" in item) {
|
||||||
__parentPage = item
|
__parentPage = item
|
||||||
console.log("Found parent " + item)
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
item = item.parent
|
item = item.parent
|
||||||
|
|
|
@ -125,12 +125,11 @@ Page {
|
||||||
id: userItemModel
|
id: userItemModel
|
||||||
apiClient: ApiClient
|
apiClient: ApiClient
|
||||||
parentId: model.id
|
parentId: model.id
|
||||||
limit: 12
|
limit: 16
|
||||||
}
|
}
|
||||||
Connections {
|
Connections {
|
||||||
target: mediaLibraryModel
|
target: mediaLibraryModel
|
||||||
onStatusChanged: {
|
onStatusChanged: {
|
||||||
console.log("MediaLibraryModel status " + status)
|
|
||||||
if (status == ApiModel.Ready) {
|
if (status == ApiModel.Ready) {
|
||||||
userItemModel.reload()
|
userItemModel.reload()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue