Skip to content

Commit

Permalink
Fix a bug in the message about scheduled drafts at TB shutdown
Browse files Browse the repository at this point in the history
The warning message that gets displayed when there are scheduled
drafts at TB shutdown said "Thunderbird" where it was supposed to say
"Send Later".
  • Loading branch information
jikamens committed Dec 19, 2024
1 parent 36a0f1e commit f3a2eaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,11 +723,11 @@
},
"ScheduledMessagesWarningQuitRequested": {
"message": "There are messages scheduled to be sent. Send Later can only send messages when $1 is running. Are you sure you want to exit?",
"description": ""
"description": "$1 is replaced with the localized name for Thunderbird"
},
"ScheduledMessagesWarningQuit": {
"message": "Send Later can only send messages when $1 is running. Please remember to restart it before your messages are scheduled to be sent!",
"description": ""
"description": "$1 is replaced with the localized name for Thunderbird"
},
"IncompatibleEncryptionTitle": {
"message": "Encryption settings incompatible with $1",
Expand Down
5 changes: 3 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -1351,11 +1351,12 @@ const SendLater = {
await messenger.quitter.removeQuitGrantedObserver();
return;
}
let appName = messenger.i18n.getMessage("extensionName");
let appName = (await messenger.runtime.getBrowserInfo()).name;
let extensionName = messenger.i18n.getMessage("extensionName");
let title =
messenger.i18n.getMessage("scheduledMessagesWarningTitle") +
" - " +
appName;
extensionName;
let requestWarning = messenger.i18n.getMessage(
"scheduledMessagesWarningQuitRequested",
appName,
Expand Down

0 comments on commit f3a2eaf

Please sign in to comment.