diff options
author | Vendicated <vendicated@riseup.net> | 2023-04-05 04:09:42 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-04-05 04:09:42 +0200 |
commit | 676bc612d96c3d1d7c7a80e62bf8e50a2a6fb74b (patch) | |
tree | abb127ffe188202339dae149e8afee3b2d22b36e /src/components | |
parent | d8a5e430340c22ba348c0ec62f4cf788a59f049d (diff) | |
download | Vencord-676bc612d96c3d1d7c7a80e62bf8e50a2a6fb74b.tar.gz Vencord-676bc612d96c3d1d7c7a80e62bf8e50a2a6fb74b.tar.bz2 Vencord-676bc612d96c3d1d7c7a80e62bf8e50a2a6fb74b.zip |
VencordDesktop: Include web plugins & use proper showItemInFolder
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/VencordSettings/VencordTab.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/VencordSettings/VencordTab.tsx b/src/components/VencordSettings/VencordTab.tsx index 8b86968..3bdd9b7 100644 --- a/src/components/VencordSettings/VencordTab.tsx +++ b/src/components/VencordSettings/VencordTab.tsx @@ -26,7 +26,7 @@ import { ErrorCard } from "@components/ErrorCard"; import IpcEvents from "@utils/IpcEvents"; import { Margins } from "@utils/margins"; import { identity, useAwaiter } from "@utils/misc"; -import { relaunch } from "@utils/native"; +import { relaunch, showItemInFolder } from "@utils/native"; import { Button, Card, Forms, React, Select, Slider, Switch } from "@webpack/common"; const cl = classNameFactory("vc-settings-"); @@ -65,7 +65,7 @@ function VencordSettings() { title: "Enable React Developer Tools", note: "Requires a full restart" }, - !IS_WEB && (!isWindows ? { + !IS_WEB && (!IS_DISCORD_DESKTOP || !isWindows ? { key: "frameless", title: "Disable the window frame", note: "Requires a full restart" @@ -112,8 +112,7 @@ function VencordSettings() { Open QuickCSS File </Button> <Button - // FIXME: Vencord Desktop support - onClick={() => window.DiscordNative.fileManager.showItemInFolder(settingsDir)} + onClick={() => showItemInFolder(settingsDir)} size={Button.Sizes.SMALL} disabled={settingsDirPending}> Open Settings Folder |