mirror of
https://github.com/bitwarden/browser
synced 2025-12-29 22:53:44 +00:00
add back disable on will-quit signal
This commit is contained in:
@@ -66,7 +66,7 @@ export class MainDesktopAutotypeService {
|
||||
}
|
||||
|
||||
// Deregister the keyboard shortcut if registered.
|
||||
private disableAutotype() {
|
||||
disableAutotype() {
|
||||
const formattedKeyboardShortcut = this.autotypeKeyboardShortcut.getElectronFormat();
|
||||
|
||||
if (globalShortcut.isRegistered(formattedKeyboardShortcut)) {
|
||||
|
||||
@@ -310,6 +310,10 @@ export class Main {
|
||||
this.logService,
|
||||
this.windowMain,
|
||||
);
|
||||
|
||||
app.on("will-quit", () => {
|
||||
this.mainDesktopAutotypeService.disableAutotype();
|
||||
});
|
||||
}
|
||||
|
||||
bootstrap() {
|
||||
|
||||
Reference in New Issue
Block a user