aboutsummaryrefslogtreecommitdiff
path: root/src/components/Settings.tsx
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-09-02 16:15:47 +0200
committerVendicated <vendicated@riseup.net>2022-09-02 16:15:47 +0200
commit68057d49e8bb602e0094fc4af785363752f05419 (patch)
treee4f030d16def56fe6be2ac951f870e63ae1a27e4 /src/components/Settings.tsx
parent02aeca6b73c5ed954e229863eb71737b6618312b (diff)
downloadVencord-68057d49e8bb602e0094fc4af785363752f05419.tar.gz
Vencord-68057d49e8bb602e0094fc4af785363752f05419.tar.bz2
Vencord-68057d49e8bb602e0094fc4af785363752f05419.zip
Debounce CssWatcher, fix empty tooltips in settings
Diffstat (limited to 'src/components/Settings.tsx')
-rw-r--r--src/components/Settings.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index dfea116..69e923a 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -43,7 +43,7 @@ export default ErrorBoundary.wrap(function Settings(props) {
</Flex.Child>
<Flex.Child>
<Button
- onClick={() => VencordNative.ipc.invoke(IpcEvents.OPEN_PATH, settingsDir + "/quickCss.css")}
+ onClick={() => VencordNative.ipc.invoke(IpcEvents.OPEN_PATH, settingsDir, "quickCss.css")}
size={ButtonProps.ButtonSizes.SMALL}
disabled={settingsDir === "Loading..."}
>
@@ -98,7 +98,7 @@ export default ErrorBoundary.wrap(function Settings(props) {
"This plugin is required. Thus you cannot disable it."
: dependency ?
`${humanFriendlyJoin(enabledDependants)} ${enabledDependants.length === 1 ? "depends" : "depend"} on this plugin. Thus you cannot disable it.`
- : ""
+ : null
}
>
{p.name}