mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-29 07:34:07 +00:00
fix: ensure app gains focus when restoring main window (#6984)
Add app.focus({ steal: true }) before restoring the window to ensure
the application properly gains focus when activated.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -93,6 +93,7 @@ let appProtocolUrl;
|
||||
// Helper function to focus and restore the main window
|
||||
const focusMainWindow = () => {
|
||||
if (mainWindow) {
|
||||
app.focus({ steal: true });
|
||||
if (mainWindow.isMinimized()) {
|
||||
mainWindow.restore();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user