chore: move download and extracting themes to tauri backend
This commit is contained in:
1 parent
e5e09505a0
commit
3768ab1064
6 files changed
+228
-102
No files matched your search
@@ -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" />
|
||||
|
||||
Reference in new issue
Block a user