Skip to content

Commit e965f1a

Browse files
committed
App: Reload the UI when a plugin gets (un)loaded.
1 parent 4e7ecc1 commit e965f1a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/ui/src/routes/(sidebar)/settings/plugins/+page.svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@
5454
<div class="flex-0">
5555
{#if context.file}
5656
<SlimButton
57-
on:click={() => {
58-
window.Caffeinated.pluginIntegration.unload(context.id);
57+
on:click={async () => {
58+
await window.Caffeinated.pluginIntegration.unload(context.id);
59+
location.reload();
5960
}}
6061
>
6162
<LocalizedText
@@ -79,8 +80,9 @@
7980
</p>
8081
<div class="flex-0">
8182
<SlimButton
82-
on:click={() => {
83-
window.Caffeinated.pluginIntegration.load(file);
83+
on:click={async () => {
84+
await window.Caffeinated.pluginIntegration.load(file);
85+
location.reload();
8486
}}
8587
>
8688
<LocalizedText key="co.casterlabs.caffeinated.app.page.settings.plugins.file.load" />

0 commit comments

Comments
 (0)