Skip to content

Commit

Permalink
Don't render anything in settings unless settings is open (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
JKohlman authored and OhMyGuus committed Apr 1, 2022
1 parent 1837c2b commit 788e76b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,8 @@ const Settings: React.FC<SettingsProps> = function ({ t, open, onClose }: Settin
});
}, []);

if (!open) { return <></> }

return (
<Box className={classes.root}>
<div className={classes.header}>
Expand Down

0 comments on commit 788e76b

Please sign in to comment.