Skip to content
  • Dan Leinir Turthra Jensen's avatar
    Fix update scenarios with no explicit downloadlink selected · f1dcbddf
    Dan Leinir Turthra Jensen authored
    Summary:
    The old downloadwidget's update system would explicitly require a user
    to pick which download item to use for updating if there was more than
    one available. This work is an attempt at implementing this at the
    engine level, while also allowing for there to be no requirement to
    make an active choice, unless there is no way to deduce which of
    the various potential download items is the one we are trying to
    update.
    
    The current heuristics are:
    - If there is one downloaditem, that's what we're updating
    - If there are more, first try and see if one has the precise url
      as the previously installed payload
    - If that fails, check for filename matches (without the rest of
      the url)
    - Only if that fails, present the user with a choice
    
    Add an explicit update function in the QtQuick items model
    
    Fix erroneous uses of installItem, and use updateItem for updates
    in the QtQuick components
    
    BUG:417510
    
    Reviewers: #knewstuff, #frameworks, #plasma, ngraham, apol, #discover_software_store, ahiemstra
    
    Reviewed By: ngraham, ahiemstra
    
    Subscribers: ahiemstra, alexde, kde-frameworks-devel
    
    Tags: #frameworks
    
    Differential Revision: https://phabricator.kde.org/D27544
    f1dcbddf