Merge branch 'master' into feature-backup-manager

This commit is contained in:
ChrisTerBeke 2018-05-16 13:41:57 +02:00
commit 419d521e09
3 changed files with 24 additions and 5 deletions

View file

@ -59,14 +59,17 @@ Item
id: installButton
active: toolbox.isDownloading && toolbox.activePackage == model
complete: tile.installed
readyAction: function() {
readyAction: function()
{
toolbox.activePackage = model
toolbox.startDownload(model.download_url)
}
activeAction: function() {
activeAction: function()
{
toolbox.cancelDownload()
}
completeAction: function() {
completeAction: function()
{
toolbox.viewCategory = "installed"
}
// Don't allow installing while another download is running

View file

@ -18,11 +18,13 @@ Column
readyLabel: catalog.i18nc("@action:button", "Update")
activeLabel: catalog.i18nc("@action:button", "Updating")
completeLabel: catalog.i18nc("@action:button", "Updated")
readyAction: function() {
readyAction: function()
{
toolbox.activePackage = model
toolbox.update(model.id)
}
activeAction: function() {
activeAction: function()
{
toolbox.cancelDownload()
}
// Don't allow installing while another download is running