Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Handle update

Manav Rathi4427352f51be
diff --git a/desktop/eslint.config.mjs b/desktop/eslint.config.mjs
index 46e94d010d..889b60c3e5 100644
--- a/desktop/eslint.config.mjs
+++ b/desktop/eslint.config.mjs
@@ -38,6 +38,13 @@ export default ts.config(
ignoreArrowShorthand: true,
},
],
+ // Allow free standing ternary expressions.
+ "@typescript-eslint/no-unused-expressions": [
+ "error",
+ {
+ allowTernary: true,
+ },
+ ],
},
},
);
diff --git a/desktop/src/main.ts b/desktop/src/main.ts
index bc5839370a..be5721ed0e 100644
--- a/desktop/src/main.ts
+++ b/desktop/src/main.ts
@@ -295,9 +295,8 @@ const createMainWindow = () => {
// On macOS, also hide the dock icon on macOS.
if (process.platform == "darwin") app.dock.hide();
} else {
- // Show our window otherwise.
- //
- // If we did not give it an explicit size, maximize it
+ // Show our window otherwise, maximizing it if we're not asked to set it
+ // to a specific size.
bounds ? window.show() : window.maximize();
}