mirror of
https://github.com/bitwarden/browser
synced 2025-12-27 05:33:59 +00:00
Restore focus when displaying sync confirm
This commit is contained in:
@@ -44,6 +44,9 @@ export class MessagingMain {
|
||||
case 'hideToTray':
|
||||
this.main.trayMain.hideToTray();
|
||||
break;
|
||||
case 'setFocus':
|
||||
this.setFocus();
|
||||
break;
|
||||
case 'enableBrowserIntegration':
|
||||
this.main.nativeMessagingMain.generateManifests();
|
||||
this.main.nativeMessagingMain.listen();
|
||||
@@ -82,4 +85,9 @@ export class MessagingMain {
|
||||
lockNowTrayMenuItem.enabled = isAuthenticated && !isLocked;
|
||||
}
|
||||
}
|
||||
|
||||
private setFocus() {
|
||||
this.main.trayMain.restoreFromTray();
|
||||
this.main.windowMain.win.focusOnWebView();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export class NativeMessagingMain {
|
||||
if (msg != null) {
|
||||
this.send(msg, socket);
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
ipc.server.on('connect', () => {
|
||||
|
||||
Reference in New Issue
Block a user