Handle update

This commit is contained in:
Manav Rathi 2024-07-06 09:44:38 +05:30
parent ac06f67891
commit 4427352f51
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View File

@ -38,6 +38,13 @@ export default ts.config(
ignoreArrowShorthand: true,
},
],
// Allow free standing ternary expressions.
"@typescript-eslint/no-unused-expressions": [
"error",
{
allowTernary: true,
},
],
},
},
);

View File

@ -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();
}