fix missing images in mentions

This commit is contained in:
molan-git 2020-06-12 17:09:05 +02:00
parent 694d6f753a
commit e4169b3b1b
5 changed files with 13 additions and 8 deletions

View file

@ -246,7 +246,9 @@ BackgroundItem {
MediaBlock { MediaBlock {
id: media 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'); model: typeof attachments !== "undefined" ? attachments : Qt.createQmlObject('import QtQuick 2.0; ListModel { }', Qt.application, 'InternalQmlObject');
height: Theme.iconSizeExtraLarge * 2 height: Theme.iconSizeExtraLarge * 2
anchors { anchors {

View file

@ -1,3 +1,6 @@
*Fri Jun 12 2020 molan <mol_an@sunrise.ch> 1.0.5-1
- [hotfix] fix missing images in mentions on Notification page
*Thu Jun 11 2020 molan <mol_an@sunrise.ch> 1.0.5-0 *Thu Jun 11 2020 molan <mol_an@sunrise.ch> 1.0.5-0
- fixed: show search results without entering # before term - fixed: show search results without entering # before term
- fixed: non-clickable user mentions in Toots - fixed: non-clickable user mentions in Toots

View file

@ -14,7 +14,7 @@ Name: harbour-tooterb
%{?qtc_builddir:%define _builddir %qtc_builddir} %{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Tooter β Summary: Tooter β
Version: 1.0.5 Version: 1.0.5
Release: 0 Release: 1
Group: Qt/Qt Group: Qt/Qt
License: LICENSE License: LICENSE
URL: http://example.org/ URL: http://example.org/

View file

@ -1,7 +1,7 @@
Name: harbour-tooterb Name: harbour-tooterb
Summary: Tooter β Summary: Tooter β
Version: 1.0.5 Version: 1.0.5
Release: 0 Release: 1
# The contents of the Group field should be one of the groups listed here: # The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS # https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
Group: Qt/Qt Group: Qt/Qt

View file

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