summaryrefslogtreecommitdiff
path: root/frontend/src/components/LeftSidebar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/LeftSidebar.tsx')
-rw-r--r--frontend/src/components/LeftSidebar.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/src/components/LeftSidebar.tsx b/frontend/src/components/LeftSidebar.tsx
index 54c2527..441b7e0 100644
--- a/frontend/src/components/LeftSidebar.tsx
+++ b/frontend/src/components/LeftSidebar.tsx
@@ -30,6 +30,7 @@ const LeftSidebar: React.FC<LeftSidebarProps> = ({ isOpen, onToggle }) => {
deleteFile,
readBlueprintFile,
loadBlueprint,
+ recoverBackgroundTasks,
saveBlueprintFile,
saveCurrentBlueprint,
createProjectFolder,
@@ -266,6 +267,8 @@ const LeftSidebar: React.FC<LeftSidebarProps> = ({ isOpen, onToggle }) => {
if (vp) {
setViewport(vp);
}
+ // Recover any background tasks that were running before page refresh
+ recoverBackgroundTasks();
} catch (e) {
console.error(e);
alert('Not a valid blueprint JSON.');