mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 09:33:03 -04:00
Add additional build flavours for Vencord Desktop (#765)
This commit is contained in:
parent
5bb08bdb64
commit
6b26c12bfa
25 changed files with 264 additions and 127 deletions
|
@ -24,6 +24,7 @@ import { handleComponentFailed } from "@components/handleComponentFailed";
|
|||
import { Link } from "@components/Link";
|
||||
import { Margins } from "@utils/margins";
|
||||
import { classes, useAwaiter } from "@utils/misc";
|
||||
import { relaunch } from "@utils/native";
|
||||
import { changes, checkForUpdates, getRepo, isNewer, rebuild, update, updateError, UpdateLogger } from "@utils/updater";
|
||||
import { Alerts, Button, Card, Forms, Parser, React, Switch, Toasts } from "@webpack/common";
|
||||
|
||||
|
@ -133,7 +134,7 @@ function Updatable(props: CommonProps) {
|
|||
cancelText: "Not now!",
|
||||
onConfirm() {
|
||||
if (needFullRestart)
|
||||
window.DiscordNative.app.relaunch();
|
||||
relaunch();
|
||||
else
|
||||
location.reload();
|
||||
r();
|
||||
|
|
|
@ -26,6 +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 { Button, Card, Forms, React, Select, Slider, Switch } from "@webpack/common";
|
||||
|
||||
const cl = classNameFactory("vc-settings-");
|
||||
|
@ -100,7 +101,7 @@ function VencordSettings() {
|
|||
) : (
|
||||
<React.Fragment>
|
||||
<Button
|
||||
onClick={() => window.DiscordNative.app.relaunch()}
|
||||
onClick={relaunch}
|
||||
size={Button.Sizes.SMALL}>
|
||||
Restart Client
|
||||
</Button>
|
||||
|
@ -111,6 +112,7 @@ function VencordSettings() {
|
|||
Open QuickCSS File
|
||||
</Button>
|
||||
<Button
|
||||
// FIXME: Vencord Desktop support
|
||||
onClick={() => window.DiscordNative.fileManager.showItemInFolder(settingsDir)}
|
||||
size={Button.Sizes.SMALL}
|
||||
disabled={settingsDirPending}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue