From 19666065fc011c32542fc8819f579ab787239638 Mon Sep 17 00:00:00 2001 From: Janosch Maier Date: Tue, 30 Nov 2021 19:58:44 +0100 Subject: [PATCH] Fix preferences window crashes due to remote problem --- .../preferences/lib/tabs/preferences-appearance.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/internal_packages/preferences/lib/tabs/preferences-appearance.tsx b/app/internal_packages/preferences/lib/tabs/preferences-appearance.tsx index 7b6c47a8f..1af0bcdd1 100644 --- a/app/internal_packages/preferences/lib/tabs/preferences-appearance.tsx +++ b/app/internal_packages/preferences/lib/tabs/preferences-appearance.tsx @@ -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')}