Skip to content

Commit

Permalink
feat: Keep Un stored Documents When Opening Space
Browse files Browse the repository at this point in the history
  • Loading branch information
1943time committed Mar 8, 2024
1 parent 2a3a388 commit 449c3ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bluestone",
"version": "0.20.1",
"version": "0.20.2",
"description": "",
"main": "./out/main/index.js",
"license": "AGPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/space/EditSpace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const EditSpace = observer(() => {
icon={<FolderOpenOutlined />}
onClick={() => {
MainApi.openDialog({
properties: ['createDirectory']
properties: ['createDirectory', 'openDirectory']
}).then(res => {
if (res.filePaths?.length) {
form.setFieldValue('filePath', res.filePaths[0])
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/store/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export class TreeStore {
}
const tabs:Tab[] = []
for (const t of this.tabs) {
if (!t.current || t.current.spaceId === this.root?.cid) {
if (!t.current || t.current.spaceId === this.root?.cid || t.current?.ghost) {
tabs.push(t)
}
}
Expand Down

0 comments on commit 449c3ac

Please sign in to comment.