Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
Option to focus window on new message notification (requested in #202)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkiol committed Mar 27, 2018
1 parent ac019ef commit 8e82b90
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions source/lib/thunderbird.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ function selectMessage(message) {
function showNotification(title, text, message, agregated = false){
const notifications = require("sdk/notifications");

if (sps.alwaysFocus)
focusWindow(false);

// Current implementation of click action doesn't support SeaMonkey,
// so doing not clickable notification if SeaMonkey
if (system.name === "SeaMonkey") {
Expand Down
9 changes: 8 additions & 1 deletion source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"Joe Simpson <headbangerkenny@gmail.com>",
"Andrew Nagle <kabili@zyrenth.com>"
],
"version": "1.12.2",
"version": "1.13.0",
"title": "GNotifier",
"fullName": "GNotifier",
"id": "jid1-OoNOA6XBjznvLQ@jetpack",
Expand Down Expand Up @@ -363,6 +363,13 @@
"type": "string",
"value": ""
},
{
"name": "alwaysFocus",
"title": "New message notification - Set focus on Thunderbird window on new notification",
"description": "When enabled, fucus on Thunderbird window is set when new notification appears.",
"type": "bool",
"value": false
},
{
"name": "test",
"title": "New message notification - Test",
Expand Down
Binary file added xpi/gnotifier-1.13.0-dev.xpi
Binary file not shown.

0 comments on commit 8e82b90

Please sign in to comment.