fix: notification toasts blocking window focus
mellbacon committed
Aug 20, 2024 at 15:55 UTC
1e027c60cbdf9d0c6f8efb790d74d26458dcedc4
1 file changed
+4
-2
src/App.svelte
+4
-2
@@ -17,7 +17,7 @@
17
import { fitTerminal } from "./lib/Terminal.svelte";
18
import { loadDir } from "./lib/File";
19
import NotificationToasts from "./lib/Notifications/NotificationToasts.svelte";
20
- import { NotifType, addNotification } from "./lib/Notifications/notifications";
20
+ import { NotifType, addNotification, toasts } from "./lib/Notifications/notifications";
21
let resolution = writable(0);
22
23
let minPanelSize = 10;
@@ -143,7 +143,9 @@
143
</Splitpanes>
144
</div>
145
<Statusbar />
146
- <NotificationToasts />
146
+ {#if $toasts.length != 0}
147
+ <NotificationToasts />
148
+ {/if}
149
</div>
150
151
{#if $_openPopup}