perf: optimize app startup and background lifecycles

This commit is contained in:
inman
2026-08-19 00:56:15 +08:00
parent 31332f6d76
commit 927e13349b
121 changed files with 4359 additions and 1400 deletions

View File

@@ -24,6 +24,7 @@ vi.mock('electron', () => ({
BrowserWindow: vi.fn(),
ipcMain: { on: vi.fn(), handle: vi.fn(), removeHandler: vi.fn() },
dialog: { showOpenDialog: vi.fn(), showMessageBox: vi.fn() },
net: { fetch: vi.fn() },
shell: { openExternal: vi.fn() },
safeStorage: {
isEncryptionAvailable: vi.fn().mockReturnValue(true),