Skip to content

Commit

Permalink
Update context name
Browse files Browse the repository at this point in the history
  • Loading branch information
DaelonSuzuka committed Nov 6, 2023
1 parent 6db1476 commit b4d3b3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -580,12 +580,12 @@
},
{
"command": "godotTools.scenePreview.pin",
"when": "view == scenePreview && !godotTools.context.scenePreviewPinned",
"when": "view == scenePreview && !godotTools.context.scenePreview.pinned",
"group": "navigation"
},
{
"command": "godotTools.scenePreview.unpin",
"when": "view == scenePreview && godotTools.context.scenePreviewPinned",
"when": "view == scenePreview && godotTools.context.scenePreview.pinned",
"group": "navigation"
}
],
Expand Down
4 changes: 2 additions & 2 deletions src/scene_preview_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ export class ScenePreviewProvider implements TreeDataProvider<SceneNode> {

private pin_preview() {
this.scenePreviewPinned = true;
set_context("scenePreviewPinned", true);
set_context("scenePreview.pinned", true);
}

private unpin_preview() {
this.scenePreviewPinned = false;
set_context("scenePreviewPinned", false);
set_context("scenePreview.pinned", false);
this.refresh();
}

Expand Down

0 comments on commit b4d3b3b

Please sign in to comment.