fix: multiple toasts showing after update download is finished

This commit is contained in:
NoCrypt 2024-08-20 18:37:33 +07:00
parent 4c26a48c7c
commit 19be275482
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@
<button title="Share" class='btn bg-dark btn-lg btn-square ml-10 material-symbols-outlined font-size-20 shadow-none border-0' use:click={() => copyToClipboard(`https://miguapp.pages.dev/anime/${media.id}`)}>
share
</button>
<button title="Non-torrent alternatives" class='btn bg-dark btn-lg btn-square ml-10 material-symbols-outlined font-size-20 shadow-none border-0' use:click={() => openInBrowser(`https://kuroiru.co/anime/${media.idMal}#tab=stream`)}>
<button title="Non-torrent alternatives (uses kuroiru.co)" class='btn bg-dark btn-lg btn-square ml-10 material-symbols-outlined font-size-20 shadow-none border-0' use:click={() => openInBrowser(`https://kuroiru.co/anime/${media.idMal}#tab=stream`)}>
hub
</button>
<button title="Open AniList" class='btn bg-dark btn-lg btn-square ml-10 material-symbols-outlined font-size-20 shadow-none border-0' use:click={() => openInBrowser(`https://anilist.co/anime/${media.id}`)}>

View file

@ -27,8 +27,8 @@ export default class Updater {
window.webContents.send('update-downloaded', true)
})
ipcMain.on('update-download', async () => {
await autoUpdater.downloadUpdate()
window.webContents.send('update-downloading', true)
await autoUpdater.downloadUpdate()
})
}