From 6096fc6738dbdd88c30dac7ee797f372ca48e1a7 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Sat, 1 Nov 2025 13:29:28 +0100 Subject: [PATCH] what do we have in the store Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com> --- lib/tray.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/tray.ts b/lib/tray.ts index a4a3b6f..c45ed2d 100644 --- a/lib/tray.ts +++ b/lib/tray.ts @@ -8,6 +8,7 @@ import { getAllWindows, getCurrentWindow } from '@tauri-apps/api/window' import { ask } from '@tauri-apps/plugin-dialog' import { platform } from '@tauri-apps/plugin-os' import { buildMenu } from './menu' +import { usePersistedStore } from './store' import { resetMainWindow } from './window' export async function triggerTrayRebuild() { @@ -23,7 +24,10 @@ async function getTray() { } async function resolveTrayIconForTheme() { - // const existingTheme = usePersistedStore.getState().themeV2 + console.log('[resolveTrayIconForTheme]') + + const existingTheme = usePersistedStore.getState().themeV2 + console.log('[resolveTrayIconForTheme] existingTheme', existingTheme) // if ('tray' in existingTheme && existingTheme.tray) { // return existingTheme.tray === 'dark'