Skip to content

Commit d2490aa

Browse files
committed
feat: improve startup resilience and window state handling
1 parent 0a7697e commit d2490aa

3 files changed

Lines changed: 51 additions & 1 deletion

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "masscode",
3-
"version": "6.1.0",
3+
"version": "6.2.0",
44
"description": "A free and open source code snippets manager for developers",
55
"author": {
66
"name": "Anton Reshetov",

‎src/main/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Event as ElectronEvent } from 'electron'
22
/* eslint-disable node/prefer-global/process */
33
import path from 'node:path'
44
import { pathToFileURL } from 'node:url'
5+
import { initStartup } from './startup'
56
import { app, BrowserWindow, Menu, protocol, screen } from 'electron'
67
import { registerAiHandlers } from './ai/ipc'
78
import { initApi } from './api'
@@ -214,6 +215,7 @@ if (!gotTheLock) {
214215
}
215216
else {
216217
app.whenReady().then(async () => {
218+
initStartup(app)
217219
const apiSessionToken = resolveApiSessionToken(
218220
isDev && !app.isPackaged,
219221
process.env.MASSCODE_API_TOKEN,

0 commit comments

Comments
 (0)