mismatched theme check

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-10-29 11:16:30 +01:00
parent 82ba13a7bf
commit 4eb97c5fc7
+13
View File
@@ -42,6 +42,19 @@ async function resolveTrayIconForTheme() {
| 'dark'
| 'unknown'
const currentWindow = getCurrentWindow()
const windowTheme = await currentWindow.theme()
if (windowTheme !== detectedTheme) {
Sentry.captureException(new Error('Window theme mismatch'), {
extra: {
detectedTheme,
windowTheme,
os: platform(),
},
})
}
if (detectedTheme === 'unknown') {
const answer = await ask(
'Could not determine your system theme, please select the correct one below',