Fix window refresh and reloads

This commit is contained in:
Josh Perez 2021-03-05 17:27:07 -05:00
parent c313514f34
commit e3d13f2480

View file

@ -1486,8 +1486,7 @@ ipc.on('locale-data', event => {
event.returnValue = locale.messages; event.returnValue = locale.messages;
}); });
// Used once to initialize SQL in the renderer process ipc.on('user-config-key', event => {
ipc.once('user-config-key', event => {
// eslint-disable-next-line no-param-reassign // eslint-disable-next-line no-param-reassign
event.returnValue = userConfig.get('key'); event.returnValue = userConfig.get('key');
}); });