Browse Source

Make passphrase prompt modal to the main window (instead of globally).

1.1.101
Jorg Knobloch 1 year ago
parent
commit
f59ca0c0a5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      addon/content/pEpForThunderbird.js

+ 2
- 1
addon/content/pEpForThunderbird.js View File

@ -71,7 +71,8 @@ class pEpForThunderbird extends pEp {
? this.localeMessagesMap.get("passphrasewrong")
: this.localeMessagesMap.get("passphraserequired");
let passphraseTitle = this.localeMessagesMap.get("passphrasetitle");
let result = promptSvc.promptPassword(null, passphraseTitle, prompt, passphrase, null, check);
let win = Services.wm.getMostRecentWindow("mail:3pane");
let result = promptSvc.promptPassword(win, passphraseTitle, prompt, passphrase, null, check);
return result ? passphrase.value : null;
}


Loading…
Cancel
Save