Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: show warning after app is ready

Abdullah Atta9c2a8070250b
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts
index c8b85fcb9..ce0bdb502 100644
--- a/apps/desktop/src/main.ts
+++ b/apps/desktop/src/main.ts
@@ -52,17 +52,6 @@ locale.then(({ default: locale }) => {
});
setI18nGlobal(i18n);
-if (app.runningUnderARM64Translation) {
- console.log("App is running under ARM64 translation");
- dialog.showMessageBoxSync({
- message:
- "Notesnook detected that it is running under ARM64 translation. For the best performance, please download the ARM64 build of Notesnook from our website.",
- type: "warning",
- buttons: ["Okay"],
- title: "Degraded Performance Warning"
- });
-}
-
// only run a single instance
if (!MAC_APP_STORE && !app.requestSingleInstanceLock()) {
console.log("Another instance is already running!");
@@ -193,6 +182,17 @@ async function createWindow() {
app.once("ready", async () => {
console.info("App ready. Opening window.");
+ if (app.runningUnderARM64Translation) {
+ console.log("App is running under ARM64 translation");
+ dialog.showMessageBoxSync({
+ message:
+ "Notesnook detected that it is running under ARM64 translation. For the best performance, please download the ARM64 build of Notesnook from our website.",
+ type: "warning",
+ buttons: ["Okay"],
+ title: "Degraded Performance Warning"
+ });
+ }
+
if (config.customDns) enableCustomDns();
else disableCustomDns();