Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

close window on shutdown (#522)

Myles Scolnickeeb25ccd8dad
diff --git a/frontend/src/components/editor/Controls.tsx b/frontend/src/components/editor/Controls.tsx
index bdd01301c7..f786e1a5bc 100644
--- a/frontend/src/components/editor/Controls.tsx
+++ b/frontend/src/components/editor/Controls.tsx
@@ -90,7 +90,12 @@ export const Controls = ({
{presenting && <LayoutSelect />}
<NotebookMenuDropdown />
<AppConfigButton />
- <ShutdownButton onShutdown={onShutdown} />
+ <ShutdownButton
+ onShutdown={() => {
+ onShutdown();
+ window.close();
+ }}
+ />
</div>
)}