Fixed quiting from the top menu bar doesn't work

This commit is contained in:
Igor Gassmann 2017-11-21 23:35:28 -03:00
parent aa42b76b79
commit cc512eec6d
2 changed files with 3 additions and 5 deletions

View file

@ -1,3 +1,4 @@
module.exports = { safeQuit };
// Module imports
const {app, BrowserWindow, ipcMain, Menu, Tray, globalShortcut} = require('electron');
const path = require('path');
@ -554,5 +555,3 @@ ipcMain.on('get-auth-token', (event) => {
ipcMain.on('set-auth-token', (event, token) => {
keytar.setPassword("LBRY", "auth_token", token ? token.toString().trim() : null);
});
module.exports = { safeQuit };

View file

@ -1,6 +1,5 @@
const { app, shell, Menu } = require('electron');
const { safeQuit } = require('../main.js')
const { safeQuit } = require('../main.js');
const baseTemplate = [
{