Disable macOS spellchecker and simplify reactive lists

This commit is contained in:
Shantur Rathore
2025-10-30 14:40:37 +00:00
parent 4dbb9c1d99
commit 7e25f20e74
4 changed files with 115 additions and 161 deletions

View File

@@ -4,6 +4,8 @@ import { createApplicationMenu } from "./menu"
import { setupInstanceIPC } from "./ipc"
import { setupStorageIPC } from "./storage"
app.commandLine.appendSwitch("disable-spell-checking")
// Setup IPC handlers before creating windows
setupStorageIPC()
@@ -27,6 +29,9 @@ function createWindow() {
},
})
// Disable macOS spell server to avoid input lag
mainWindow.webContents.session.setSpellCheckerEnabled(false)
if (process.env.NODE_ENV === "development") {
mainWindow.loadURL("http://localhost:3000")
mainWindow.webContents.openDevTools()