From 49e2ea5c583c1d90c32ea082766a73dfb44821ef Mon Sep 17 00:00:00 2001 From: NoCrypt <57245077+NoCrypt@users.noreply.github.com> Date: Thu, 25 Jul 2024 23:43:52 +0700 Subject: [PATCH] improve: add duration to torrent warn toast --- common/modules/torrent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/modules/torrent.js b/common/modules/torrent.js index 92aa2da..f2d2b73 100644 --- a/common/modules/torrent.js +++ b/common/modules/torrent.js @@ -66,7 +66,7 @@ client.on('error', ({ detail }) => { client.on('warn', ({ detail }) => { console.error(detail) - toast.warning('Torrent Warning', { description: '' + (detail.message || detail) }) + toast.warning('Torrent Warning', { description: '' + (detail.message || detail), duration: 200 }) }) export async function add (torrentID, hide) {