Skip to content

Commit

Permalink
fix: enforce quit on system which might not do it automatically on ma…
Browse files Browse the repository at this point in the history
…in window closing #29
  • Loading branch information
johannesjo committed Nov 30, 2017
1 parent 2f78577 commit e3928b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion electron/indicator.js
Expand Up @@ -22,7 +22,7 @@ function init(params) {
initListeners(isGnomeShellExtensionInstalled);

// if we have the gnome shell extension installed set up bus
if (isGnomeShellExtensionInstalled) {
if (IS_GNOME && isGnomeShellExtensionInstalled) {
dbus.init({
mainWin,
quitApp,
Expand Down
3 changes: 3 additions & 0 deletions electron/main-window.js
Expand Up @@ -75,6 +75,9 @@ function initWinEventListeners(app, IS_MAC, nestedWinParams) {
if (!app.isQuiting && indicatorMod.isRunning()) {
event.preventDefault();
mainWin.hide();
} else {
// just quit (NOTE: normally this shouldn't be necessary)
app.quit();
}
}
});
Expand Down

0 comments on commit e3928b4

Please sign in to comment.