Skip to content

Build your personal knowledge base with Trilium Notes

fix(desktop): background effects always on

Elian Doran94e20c44e5d9
diff --git a/apps/server/src/routes/index.ts b/apps/server/src/routes/index.ts
index 69daeb6804..430c27d0f5 100644
--- a/apps/server/src/routes/index.ts
+++ b/apps/server/src/routes/index.ts
@@ -43,7 +43,7 @@ function index(req: Request, res: Response) {
platform: process.platform,
isElectron,
hasNativeTitleBar: isElectron && nativeTitleBarVisible,
- hasBackgroundEffects: isElectron && isWindows11 && !nativeTitleBarVisible,
+ hasBackgroundEffects: isElectron && isWindows11 && !nativeTitleBarVisible && options.backgroundEffects === "true",
mainFontSize: parseInt(options.mainFontSize),
treeFontSize: parseInt(options.treeFontSize),
detailFontSize: parseInt(options.detailFontSize),