summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-05-02 08:15:46 -0700
committerGitHub <[email protected]>2025-05-02 08:15:46 -0700
commita7679db6e99f971306bc4b27c603e93bc67ac254 (patch)
treeb123af46cbcc119434ddc0cc3d6f5b10d5637601 /packages/cli/src/ui/hooks
parent53ac7952c7ac11770037fecccda5f0f2fffa3e0b (diff)
sandbox setting and argument (#243)
Diffstat (limited to 'packages/cli/src/ui/hooks')
-rw-r--r--packages/cli/src/ui/hooks/useThemeCommand.ts4
1 files changed, 2 insertions, 2 deletions
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
}