From e652665384d37b0c02ec11052c80235a000aa38b Mon Sep 17 00:00:00 2001 From: Denis Freund Date: Sun, 17 Nov 2024 15:20:48 +0100 Subject: [PATCH] refactor: enhance configuration url handle (#499) --- .../components/SettingsSection/Developer.tsx | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/renderer/components/SettingsSection/Developer.tsx b/src/renderer/components/SettingsSection/Developer.tsx index a1d839e9..b2cbf00f 100644 --- a/src/renderer/components/SettingsSection/Developer.tsx +++ b/src/renderer/components/SettingsSection/Developer.tsx @@ -2,6 +2,9 @@ import React, { FC, useCallback, useEffect, useState } from 'react'; import { useSetting } from 'renderer/rendererSettings'; import { Toggle } from 'renderer/components/Toggle'; import * as packageInfo from '../../../../package.json'; +import { Button, ButtonType } from 'renderer/components/Button'; +import { ipcRenderer } from 'electron'; +import channels from 'common/channels'; const SettingsItem: FC<{ name: string }> = ({ name, children }) => (
@@ -45,12 +48,20 @@ export const DeveloperSettings: React.FC = () => { onBlur={() => validateUrl()} size={50} /> - ipcRenderer.send(channels.window.reload)} + > + Reload Installer + +