chore: move download and extracting themes to tauri backend

This commit is contained in:
HorizonCode committed 2026-05-27 14:59:43 +02:00
1 parent e5e09505a0
commit 3768ab1064
6 files changed
+228 -102

No files matched your search

+11 -1
View File
@@ -1910,7 +1910,17 @@
size="icon"
variant="destructive"
disabled={theme.status !== 'installed'}
onclick={() => deleteTheme(theme)}
onclick={async () => {
try {
await deleteTheme(theme);
} catch (err) {
console.log(err);
sileo.error({
title: 'Uhhm..',
description: 'Failed to uninstall theme.',
});
}
}}
>
{#if theme.status === 'deleting'}
<LoaderCircle class="animate-spin" />