From a7679db6e99f971306bc4b27c603e93bc67ac254 Mon Sep 17 00:00:00 2001 From: Olcan Date: Fri, 2 May 2025 08:15:46 -0700 Subject: sandbox setting and argument (#243) --- packages/cli/src/ui/hooks/useThemeCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/cli/src/ui') diff --git a/packages/cli/src/ui/hooks/useThemeCommand.ts b/packages/cli/src/ui/hooks/useThemeCommand.ts index 3ca48cbf..542ee062 100644 --- a/packages/cli/src/ui/hooks/useThemeCommand.ts +++ b/packages/cli/src/ui/hooks/useThemeCommand.ts @@ -22,7 +22,7 @@ export const useThemeCommand = ( loadedSettings: LoadedSettings, // Changed parameter ): UseThemeCommandReturn => { // Determine the effective theme - const effectiveTheme = loadedSettings.getMerged().theme; + const effectiveTheme = loadedSettings.merged.theme; // Initial state: Open dialog if no theme is set in either user or workspace settings const [isThemeDialogOpen, setIsThemeDialogOpen] = useState( @@ -56,7 +56,7 @@ export const useThemeCommand = ( // Added scope parameter try { loadedSettings.setValue(scope, 'theme', themeName); // Update the merged settings - applyTheme(loadedSettings.getMerged().theme); // Apply the current theme + applyTheme(loadedSettings.merged.theme); // Apply the current theme } finally { setIsThemeDialogOpen(false); // Close the dialog } -- cgit v1.2.3