fix missing images in notifications

This commit is contained in:
molan-git 2020-06-12 16:56:10 +02:00
parent 520bc9962b
commit 32f93b8e26
2 changed files with 8 additions and 7 deletions

View file

@ -210,7 +210,6 @@ BackgroundItem {
}
Rectangle {
radius: 2
color: Theme.highlightDimmerColor
visible: status_spoiler_text.length > 0
anchors.fill: parent
@ -245,7 +244,9 @@ BackgroundItem {
MediaBlock {
id: media
visible: myList.type !== "notifications" && ( model.type !== "favourite" || model.type !== "reblog" )
visible: if (myList.type === "notifications" && ( type === "favourite" || type === "reblog" )) {
false
} else true
model: typeof attachments !== "undefined" ? attachments : Qt.createQmlObject('import QtQuick 2.0; ListModel { }', Qt.application, 'InternalQmlObject');
height: Theme.iconSizeExtraLarge * 2
anchors {

View file

@ -439,27 +439,27 @@
<context>
<name>VisualContainer</name>
<message>
<location filename="../qml/pages/components/VisualContainer.qml" line="267"/>
<location filename="../qml/pages/components/VisualContainer.qml" line="268"/>
<source>Unboost</source>
<translation>Annulla condivisione</translation>
</message>
<message>
<location filename="../qml/pages/components/VisualContainer.qml" line="267"/>
<location filename="../qml/pages/components/VisualContainer.qml" line="268"/>
<source>Boost</source>
<translation>Condividi</translation>
</message>
<message>
<location filename="../qml/pages/components/VisualContainer.qml" line="308"/>
<location filename="../qml/pages/components/VisualContainer.qml" line="309"/>
<source>Unfavorite</source>
<translation>Annulla apprezzamento</translation>
</message>
<message>
<location filename="../qml/pages/components/VisualContainer.qml" line="308"/>
<location filename="../qml/pages/components/VisualContainer.qml" line="309"/>
<source>Favorite</source>
<translation>Apprezzato</translation>
</message>
<message>
<location filename="../qml/pages/components/VisualContainer.qml" line="349"/>
<location filename="../qml/pages/components/VisualContainer.qml" line="350"/>
<source>Mention</source>
<translation>Menzionare</translation>
</message>