Update config of main process when the config file is updated
This commit is contained in:
@@ -86,6 +86,7 @@ var SettingsPage = React.createClass({
|
||||
}
|
||||
|
||||
ipcRenderer.send('update-menu', config);
|
||||
ipcRenderer.send('update-config');
|
||||
|
||||
if (typeof toIndex == 'undefined' || toIndex) {
|
||||
backToIndex();
|
||||
|
@@ -66,6 +66,9 @@ catch (e) {
|
||||
config = settings.loadDefault();
|
||||
console.log('Failed to read or upgrade config.json');
|
||||
}
|
||||
ipcMain.on('update-config', () => {
|
||||
config = settings.readFileSync(configFile);
|
||||
});
|
||||
|
||||
// Only for OS X
|
||||
const switchMenuIconImages = function(icons, isDarkMode) {
|
||||
|
Reference in New Issue
Block a user