StagingView: improve reload job
StagingView now cancels an already running reload job before scheduling
a new reload job. This avoids unnecessary expensive calculation of
IndexDiffs.
Furthermore the selected repository is not changed if the reload job was
canceled. This avoids showing incomplete staging information for the
newly selected repository.
Bug: 355278
Change-Id: Ie04d49cc2249392a9f15e3aefaef1c54c07dce63
Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
Signed-off-by: Kevin Sawicki <kevin@github.com>