From 81faa578085ccd33e5ebbd147befb99d60afaaaa Mon Sep 17 00:00:00 2001 From: fake <99718350+qweme32@users.noreply.github.com> Date: Tue, 20 Jan 2026 10:58:06 +0300 Subject: [PATCH] fix: add timeout for prevent ui lag (#6771) --- packages/bruno-electron/src/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); } };