mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 12:10:18 +03:00
perf(overview): Disable canvas first-time render (#1029)
This commit is contained in:
parent
e26f0d0f6a
commit
d679ad4c3e
1 changed files with 4 additions and 2 deletions
|
@ -31,7 +31,7 @@
|
|||
{{ $t('modals.detail.pageOverview.waitingForMetadata') }}
|
||||
</span>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div v-else-if="!shouldRenderPieceStates">
|
||||
<canvas id="pieceStates" width="0" height="1" />
|
||||
</div>
|
||||
<div v-if="!isFetchingMetadata && !shouldRenderPieceStates">
|
||||
|
@ -182,7 +182,9 @@ export default defineComponent({
|
|||
async mounted() {
|
||||
await this.getTorrentProperties()
|
||||
await this.updateSelectedFiles()
|
||||
await this.renderTorrentPieceStates()
|
||||
if (this.shouldRenderPieceStates) {
|
||||
await this.renderTorrentPieceStates()
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['webuiSettings']),
|
||||
|
|
Loading…
Add table
Reference in a new issue