enh: option to disable update toast

This commit is contained in:
Timothy J. Baek
2024-10-21 00:30:29 -07:00
parent 47e377967e
commit 6cb41a38a6
2 changed files with 35 additions and 3 deletions

View File

@@ -231,7 +231,7 @@
<SettingsModal bind:show={$showSettings} />
<ChangelogModal bind:show={$showChangelog} />
{#if version && compareVersion(version.latest, version.current)}
{#if version && compareVersion(version.latest, version.current) && ($settings?.showUpdateToast ?? true)}
<div class=" absolute bottom-8 right-8 z-50" in:fade={{ duration: 100 }}>
<UpdateInfoToast
{version}