diff options
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/index.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/index.ts b/src/main/index.ts index 76c508a..344465f 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -102,6 +102,17 @@ function setupIpcHandlers(): void { return true }) + // Get max messages + ipcMain.handle('config:get-max-messages', () => { + return store.get('maxMessages', 300) // Default to 100 if not set + }) + + // Set max messages + ipcMain.handle('config:set-max-messages', (_, maxMessagesKept: number) => { + store.set('maxMessages', maxMessagesKept) + return true + }) + // Get all channel nicknames as array ipcMain.handle('config:get-channel-list', () => { const nicknames = store.get('channelNicknames') |
