1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-30 15:13:32 +00:00

add back disable on will-quit signal

This commit is contained in:
neuronull
2025-10-27 15:53:30 -06:00
parent 148be5f228
commit 45ec0f64f2
2 changed files with 5 additions and 1 deletions

View File

@@ -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)) {

View File

@@ -310,6 +310,10 @@ export class Main {
this.logService,
this.windowMain,
);
app.on("will-quit", () => {
this.mainDesktopAutotypeService.disableAutotype();
});
}
bootstrap() {