diff --git a/package.json b/package.json index 47544963b..cc9f62238 100644 --- a/package.json +++ b/package.json @@ -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" } ], diff --git a/src/scene_preview_provider.ts b/src/scene_preview_provider.ts index 5fc79b025..4a13aeff5 100644 --- a/src/scene_preview_provider.ts +++ b/src/scene_preview_provider.ts @@ -109,12 +109,12 @@ export class ScenePreviewProvider implements TreeDataProvider { 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(); }