mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-17 14:08:41 -09:00
parent
0780f86b47
commit
60fbc122a8
1 changed files with 5 additions and 8 deletions
13
app/index.js
13
app/index.js
|
|
@ -36,12 +36,6 @@ const url = 'file://' + resolve(
|
||||||
|
|
||||||
console.log('electron will open', url);
|
console.log('electron will open', url);
|
||||||
|
|
||||||
app.on('window-all-closed', () => {
|
|
||||||
if (process.platform !== 'darwin') {
|
|
||||||
app.quit();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
function createWindow (fn) {
|
function createWindow (fn) {
|
||||||
let cfg = plugins.getDecoratedConfig();
|
let cfg = plugins.getDecoratedConfig();
|
||||||
|
|
@ -227,8 +221,11 @@ app.on('ready', () => {
|
||||||
deleteSessions();
|
deleteSessions();
|
||||||
cfgUnsubscribe();
|
cfgUnsubscribe();
|
||||||
pluginsUnsubscribe();
|
pluginsUnsubscribe();
|
||||||
if (windowSet.size === 0) {
|
});
|
||||||
win.close();
|
|
||||||
|
win.on('closed', () => {
|
||||||
|
if (process.platform !== 'darwin') {
|
||||||
|
app.quit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue