Skip to content

Commit

Permalink
fix: sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed May 4, 2024
1 parent d08c35b commit 3431640
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/state/workspace.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { SerialPort as MockedCDCSerialPort } from "web-serial-polyfill";
import type MicroPythonIO from "../micropython";
import type { IOEventTarget } from "../micropython";
import { workspace } from "./blockly.svelte";
import { popups } from "./popup.svelte";

export type LeaphyPort =
| SerialPort
Expand Down Expand Up @@ -230,4 +231,9 @@ export async function tempSave() {

window.addEventListener("beforeunload", tempSave);

mode.subscribe(() => {
popups.clear();
sidePanel.set(null);
});

code.subscribe(() => saveState.set(false));

0 comments on commit 3431640

Please sign in to comment.