From 5ec3d58f6f7d44d02342d93e6802c434c44c03d1 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 26 Mar 2025 08:30:56 +0200 Subject: [PATCH] fix(electron): option does not exist --- electron.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron.ts b/electron.ts index 6beda97cf..938440947 100644 --- a/electron.ts +++ b/electron.ts @@ -23,7 +23,7 @@ electronDl({ saveAs: true }); // needed for excalidraw export https://github.com/zadam/trilium/issues/4271 electron.app.commandLine.appendSwitch("enable-experimental-web-platform-features"); -electron.app.commandLine.appendSwitch("lang", options.getOption("formattingLocale") ?? "en"); +electron.app.commandLine.appendSwitch("lang", options.getOptionOrNull("formattingLocale") ?? "en"); electron.app.userAgentFallback = `${electron.app.getName()} ${electron.app.getVersion()}`;