Show network errors when entryList is empty

This commit is contained in:
Tobias Fella 2020-07-04 22:42:19 +02:00
parent a321122e5c
commit 1065e3cdd9
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@ if(ANDROID)
alligator
mail-sent
globe
data-error
)
else()
target_link_libraries(alligator PRIVATE Qt5::Widgets)

View File

@ -61,7 +61,8 @@ Kirigami.ScrollablePage {
width: Kirigami.Units.gridUnit * 20
anchors.centerIn: parent
text: i18n("No Entries available.")
text: feed.errorId === 0 ? i18n("No Entries available.") : i18n("Error (%1): %2", feed.errorId, feed.errorString)
icon.name: feed.errorId === 0 ? "" : "data-error"
}
ListView {