Skip to content
Snippets Groups Projects
Commit 69edf3bd authored by Jonathan Maw's avatar Jonathan Maw
Browse files

_stream.py: workspace_close deletes the stored project reference

parent 8be2b8bd
No related branches found
No related tags found
No related merge requests found
...@@ -536,6 +536,10 @@ class Stream(): ...@@ -536,6 +536,10 @@ class Stream():
except OSError as e: except OSError as e:
raise StreamError("Could not remove '{}': {}" raise StreamError("Could not remove '{}': {}"
.format(workspace.get_absolute_path(), e)) from e .format(workspace.get_absolute_path(), e)) from e
else:
# TODO: At some point, closing a workspace only deletes the file if no projects are using it.
workspace_local = workspaces.create_workspace_local(workspace.get_absolute_path())
workspace_local.delete()
# Delete the workspace and save the configuration # Delete the workspace and save the configuration
workspaces.delete_workspace(element_name) workspaces.delete_workspace(element_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment