Make 'Restart Signal' actually restart Signal
Previously it would just reload the page. // FREEBIE
This commit is contained in:
parent
bc71f4aa2b
commit
7c6da5a157
3 changed files with 9 additions and 1 deletions
|
@ -177,7 +177,7 @@
|
||||||
'click .showSettings': 'showSettings',
|
'click .showSettings': 'showSettings',
|
||||||
'select .gutter .conversation-list-item': 'openConversation',
|
'select .gutter .conversation-list-item': 'openConversation',
|
||||||
'input input.search': 'filterContacts',
|
'input input.search': 'filterContacts',
|
||||||
'click .restart-signal': 'reloadBackgroundPage',
|
'click .restart-signal': window.restart,
|
||||||
'show .lightbox': 'showLightbox',
|
'show .lightbox': 'showLightbox',
|
||||||
'click .migrate': 'confirmMigration'
|
'click .migrate': 'confirmMigration'
|
||||||
},
|
},
|
||||||
|
|
4
main.js
4
main.js
|
@ -212,3 +212,7 @@ ipc.on('draw-attention', function(event, count) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
ipc.on('restart', function(event) {
|
||||||
|
app.relaunch();
|
||||||
|
app.quit();
|
||||||
|
});
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
console.log('show window');
|
console.log('show window');
|
||||||
ipc.send('show-window');
|
ipc.send('show-window');
|
||||||
};
|
};
|
||||||
|
window.restart = function() {
|
||||||
|
console.log('restart');
|
||||||
|
ipc.send('restart');
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* Enables spell-checking and the right-click context menu in text editors.
|
* Enables spell-checking and the right-click context menu in text editors.
|
||||||
* Electron (`webFrame.setSpellCheckProvider`) only underlines misspelled words;
|
* Electron (`webFrame.setSpellCheckProvider`) only underlines misspelled words;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue