Fix preferences window crashes due to remote problem

This commit is contained in:
Janosch Maier 2021-11-30 19:58:44 +01:00 committed by Ben Gotow
parent e6d3290c4e
commit 19666065fc

View file

@ -97,8 +97,8 @@ class MenubarStylePicker extends React.Component<{ config: ConfigLike }> {
className="btn btn-small"
style={{ float: 'right' }}
onClick={() => {
const { BrowserWindow } = require('@electron/remote').app.relaunch();
const { BrowserWindow } = require('@electron/remote').app.quit();
require('@electron/remote').app.relaunch();
require('@electron/remote').app.quit();
}}
>
{localized('Relaunch')}