Disable macOS spellchecker and simplify reactive lists
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user