Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1403

Add explicit API for album requests

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 2.0.4
    • None
    • None

      Currently additional network requests used by Picard modules or plugins to load additional data for an album all have to register this call on the album and make sure to release it again. Only if a plugin handles this correctly the album will be shown as till loading and get finalized once all requests are finished.

       

      However, there is no proper API for this. All plugins currently do something like this:

       

      album._requests += 1

      1. do the request

       

      1. in the callback

      album._requests -= 1

      album._finalize_loading()

       

      We should offer a proper API for this

            Unassigned Unassigned
            outsidecontext Philipp Wolfer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Version Package