From b4d3b3b65cdcbc7c41707a7f1a6d9fd8abe9db74 Mon Sep 17 00:00:00 2001 From: David Kincaid Date: Sun, 5 Nov 2023 22:45:15 -0500 Subject: [PATCH] Update context name --- package.json | 4 ++-- src/scene_preview_provider.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); }