Commit 63551d22 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Improve message when we open Discover on update mode

Explain we are downloading updates
parent ef8448f6
......@@ -226,6 +226,7 @@ DiscoverPage
readonly property alias secSinceUpdate: resourcesUpdatesModel.secsToLastUpdate
state: ( updateModel.hasUpdates ? "has-updates"
: ResourcesModel.isFetching ? "fetching"
: resourcesUpdatesModel.isProgressing ? "progressing"
: secSinceUpdate < 0 ? "unknown"
: secSinceUpdate === 0 ? "now-uptodate"
......@@ -235,6 +236,11 @@ DiscoverPage
)
states: [
State {
name: "fetching"
PropertyChanges { target: page; title: i18nc("@info", "Fetching...") }
PropertyChanges { target: page; footerLabel: i18nc("@info", "Looking for updates") }
},
State {
name: "progressing"
PropertyChanges { target: page; title: i18nc("@info", "Updating...") }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment