Let download update timer only run when there's running downloads
ClosedPublic

Authored by broulik on Jul 19 2018, 7:48 AM.

Details

Summary

Currently we have a 1000ms timer running querying for running downloads whenever the extension is loaded.

Test Plan

Started a download, timer started running, canceled said download, timer stopped running shortly thereafter.
Also works fine with multiple downloads

Diff Detail

Repository
R856 Plasma Browser Integration
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Jul 19 2018, 7:48 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 19 2018, 7:48 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Jul 19 2018, 7:48 AM

Seems sensible to me.

This revision was not accepted when it landed; it landed in state Needs Review.Jul 23 2018, 1:54 PM
This revision was automatically updated to reflect the committed changes.