diff options
-rw-r--r-- | src/console/components/Console.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/console/components/Console.tsx b/src/console/components/Console.tsx index 508c6eb..c8642c8 100644 --- a/src/console/components/Console.tsx +++ b/src/console/components/Console.tsx @@ -11,8 +11,10 @@ const Console: React.FC = () => { const refreshColorScheme = useColorSchemeRefresh(); React.useEffect(() => { - refreshColorScheme(); - }, []); + if (state.mode !== "") { + refreshColorScheme(); + } + }, [state.mode]); switch (state.mode) { case "command": |