Commit fcec1090 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Show something on the updates page after leaving it to navigate the app

BUG: 393593
parent 5374247f
......@@ -238,8 +238,8 @@ DiscoverPage
readonly property alias secSinceUpdate: resourcesUpdatesModel.secsToLastUpdate
state: ( updateModel.hasUpdates ? "has-updates"
: ResourcesModel.isFetching ? "fetching"
: resourcesUpdatesModel.isProgressing ? "progressing"
: ResourcesModel.isFetching ? "fetching"
: secSinceUpdate < 0 ? "unknown"
: secSinceUpdate === 0 ? "now-uptodate"
: secSinceUpdate < 1000 * 60 * 60 * 24 ? "uptodate"
......
......@@ -100,7 +100,8 @@ void UpdateModel::activityChanged()
for(auto item : m_updateItems) {
item->setProgress(0);
}
}
} else
setResources(m_updates->toUpdate());
}
}
......
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