diff --git a/packages/bruno-electron/src/index.js b/packages/bruno-electron/src/index.js index c6b6e577c..db585259e 100644 --- a/packages/bruno-electron/src/index.js +++ b/packages/bruno-electron/src/index.js @@ -220,9 +220,15 @@ app.on('ready', async () => { } }); + let boundsTimeout; const handleBoundsChange = () => { if (!mainWindow.isMaximized()) { - saveBounds(mainWindow); + if (boundsTimeout) { + clearTimeout(boundsTimeout); + } + boundsTimeout = setTimeout(() => { + saveBounds(mainWindow); + }, 100); } };