feat: add renderer readiness signaling and update IPC channels for folder sync

This commit is contained in:
Anish Sarkar 2026-04-02 22:20:11 +05:30
parent 1ef0d913e7
commit 5d6e3ffb7b
4 changed files with 48 additions and 20 deletions

View file

@ -8,6 +8,7 @@ import {
getWatcherStatus,
pauseWatcher,
resumeWatcher,
markRendererReady,
} from '../modules/folder-watcher';
export function registerIpcHandlers(): void {
@ -44,4 +45,8 @@ export function registerIpcHandlers(): void {
ipcMain.handle(IPC_CHANNELS.FOLDER_SYNC_PAUSE, () => pauseWatcher());
ipcMain.handle(IPC_CHANNELS.FOLDER_SYNC_RESUME, () => resumeWatcher());
ipcMain.handle(IPC_CHANNELS.FOLDER_SYNC_RENDERER_READY, () => {
markRendererReady();
});
}