Skip to content
This repository has been archived by the owner on Apr 14, 2018. It is now read-only.

Commit

Permalink
Allo only one instance of the executable at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Dec 16, 2015
2 parents d28857f + 9a55f8f commit 737aa82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/window-behaviour.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ module.exports = {
win.show();
});

gui.App.on('open', function() {
win.show();
});

// Don't quit the app when the window is closed
win.removeAllListeners('close');
win.on('close', function(quit) {
Expand Down
1 change: 1 addition & 0 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "1.4.3",
"app-id": "com.aluxian.messengerfordesktop",
"chromium-args": "--disable-setuid-sandbox",
"single-instance": true,
"window": {
"width": 800,
"height": 600,
Expand Down

0 comments on commit 737aa82

Please sign in to comment.