Skip to content

Commit 2dffa58

Browse files
committed
fix: move watcher cleanup from close handler to before-quit only
The close event is cancelable — if the user cancels the unsaved changes dialog, watchers would remain closed for the rest of the session. Move closeAllWatchers() to before-quit which only fires on actual quit.
1 parent 16d5404 commit 2dffa58

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/bruno-electron/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ app.on('ready', async () => {
393393

394394
mainWindow.on('close', (e) => {
395395
e.preventDefault();
396-
closeAllWatchers();
397396
terminalManager.cleanup(mainWindow.webContents);
398397
ipcMain.emit('main:start-quit-flow');
399398
});

0 commit comments

Comments
 (0)