Fix URI comparison in 'doDeleteFileAndMaybeGoBack'

## Issue
4959: Deleting MD from downloads list causes spinning icon to run forever

5077: player doesn't close when video deleted
This commit is contained in:
infinite-persistence 2021-02-25 14:41:34 +08:00 committed by Sean Yesmunt
parent 351890decf
commit 94fe68eb45

View file

@ -77,7 +77,7 @@ export function doDeleteFileAndMaybeGoBack(uri, deleteFromComputer, abandonClaim
})
);
if (playingUri === uri) {
if (playingUri && playingUri.uri === uri) {
actions.push(doSetPlayingUri({ uri: null }));
}
// it would be nice to stay on the claim if you just want to delete it