diff --git a/src/renderer/pages/TorrentListPage.js b/src/renderer/pages/TorrentListPage.js
index 9408eb65..868cbc30 100644
--- a/src/renderer/pages/TorrentListPage.js
+++ b/src/renderer/pages/TorrentListPage.js
@@ -192,23 +192,12 @@ module.exports = class TorrentList extends React.Component {
key='download-button'
className={'button-round icon download ' + torrentSummary.status}
title={downloadTooltip}
- onClick={dispatcher('toggleTorrent', infoHash)}>
+ onClick={dispatcher('toggleTorrent', infoHash)}
+ >
{downloadIcon}
)
- if (TorrentPlayer.isPlayableTorrentSummary(torrentSummary)) {
- playButton = (
-
- {playIcon}
-
- )
- }
-
// Do we have a saved position? Show it using a radial progress bar on top
// of the play button, unless already showing a spinner there:
var willShowSpinner = torrentSummary.playStatus === 'requested'
@@ -219,6 +208,19 @@ module.exports = class TorrentList extends React.Component {
positionElem = this.renderRadialProgressBar(fraction, 'radial-progress-large')
playClass = 'resume-position'
}
+
+ if (TorrentPlayer.isPlayableTorrentSummary(torrentSummary)) {
+ playButton = (
+
+ {playIcon}
+
+ )
+ }
}
return (