Merge pull request #773 from lbryio/issue/772
Fixed quitting from the top menu bar doesn't work (#772)
This commit is contained in:
commit
7ee49e89fa
2 changed files with 3 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
module.exports = { safeQuit };
|
||||||
// Module imports
|
// Module imports
|
||||||
const {app, BrowserWindow, ipcMain, Menu, Tray, globalShortcut} = require('electron');
|
const {app, BrowserWindow, ipcMain, Menu, Tray, globalShortcut} = require('electron');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
@ -553,6 +554,4 @@ ipcMain.on('get-auth-token', (event) => {
|
||||||
|
|
||||||
ipcMain.on('set-auth-token', (event, token) => {
|
ipcMain.on('set-auth-token', (event, token) => {
|
||||||
keytar.setPassword("LBRY", "auth_token", token ? token.toString().trim() : null);
|
keytar.setPassword("LBRY", "auth_token", token ? token.toString().trim() : null);
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = { safeQuit };
|
|
|
@ -1,6 +1,5 @@
|
||||||
const { app, shell, Menu } = require('electron');
|
const { app, shell, Menu } = require('electron');
|
||||||
const { safeQuit } = require('../main.js')
|
const { safeQuit } = require('../main.js');
|
||||||
|
|
||||||
|
|
||||||
const baseTemplate = [
|
const baseTemplate = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue