Skip to content

Commit

Permalink
fix: maybe not close the tab after the download?
Browse files Browse the repository at this point in the history
  • Loading branch information
koen1711 committed Sep 19, 2024
1 parent 8f52c94 commit 7ef9705
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/core/popups/popups/Uploader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async function connectUSB() {
<Button
name={$_("DOWNLOAD_DRIVERS")}
mode={"accent"}
onclick={downloadDrivers}
onclick={() => {close(); downloadDrivers();}}
/>
{/if}
{/if}
Expand Down
1 change: 0 additions & 1 deletion src/lib/drivers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ async function downloadDrivers() {
a.download = "leaphy-drivers.zip";
a.click();
URL.revokeObjectURL(url);
close();
await popups.open({
component: DriverInstall,
data: {},
Expand Down

0 comments on commit 7ef9705

Please sign in to comment.