Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Throw error on export dialog cancel

Richie McIlroyf382e2c57c70
diff --git a/apps/desktop/src/routes/editor/ExportPage.tsx b/apps/desktop/src/routes/editor/ExportPage.tsx
index 56c0f724d..5169e656a 100644
--- a/apps/desktop/src/routes/editor/ExportPage.tsx
+++ b/apps/desktop/src/routes/editor/ExportPage.tsx
@@ -438,8 +438,7 @@ export function ExportPage() {
defaultPath: `~/Desktop/${meta().prettyName}.${extension}`,
});
if (!savePath) {
- setExportState(reconcile({ type: "idle" }));
- return;
+ throw new SilentError("Save dialog cancelled");
}
setExportState(reconcile({ action: "save", type: "starting" }));