From ffa6d930dacfb2dcaf25292b51bcbd8f17db6d1d Mon Sep 17 00:00:00 2001
From: khcrysalis <97859147+khcrysalis@users.noreply.github.com>
Date: Sun, 15 Sep 2024 00:56:31 -0700
Subject: [PATCH] chore: make the linter happy once again
---
src/main/mainWindow.ts | 4 ++--
src/renderer/components/settings/Settings.tsx | 2 +-
src/renderer/components/settings/TitleBarPicker.tsx | 7 ++++---
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts
index 864f9ac..46c71ec 100644
--- a/src/main/mainWindow.ts
+++ b/src/main/mainWindow.ts
@@ -425,12 +425,12 @@ function createMainWindow() {
transparent: true
}),
...(staticTitle && { title: "Vesktop" }),
- ...(process.platform === "darwin" && titleBar !== "shown" && getDarwinOptions()), // Show/Hide titlebar depending on settings on Mac
+ ...(process.platform === "darwin" && titleBar !== "shown" && getDarwinOptions()), // Show/Hide titlebar depending on settings on Mac
...getWindowBoundsOptions(),
autoHideMenuBar: enableMenu
}));
win.setMenuBarVisibility(false);
- if (process.platform === "darwin" && titleBar === "custom") {
+ if (process.platform === "darwin" && titleBar === "custom") {
win.setWindowButtonVisibility(false); // Hide the traffic lights
}
diff --git a/src/renderer/components/settings/Settings.tsx b/src/renderer/components/settings/Settings.tsx
index 20a056d..bc33168 100644
--- a/src/renderer/components/settings/Settings.tsx
+++ b/src/renderer/components/settings/Settings.tsx
@@ -14,9 +14,9 @@ import { isMac, isWindows } from "renderer/utils";
import { AutoStartToggle } from "./AutoStartToggle";
import { DiscordBranchPicker } from "./DiscordBranchPicker";
import { NotificationBadgeToggle } from "./NotificationBadgeToggle";
+import { TitleBarPicker } from "./TitleBarPicker";
import { VencordLocationPicker } from "./VencordLocationPicker";
import { WindowsTransparencyControls } from "./WindowsTransparencyControls";
-import { TitleBarPicker } from "./TitleBarPicker";
interface BooleanSetting {
key: keyof typeof Settings.store;
diff --git a/src/renderer/components/settings/TitleBarPicker.tsx b/src/renderer/components/settings/TitleBarPicker.tsx
index 1fcdeac..07d4497 100644
--- a/src/renderer/components/settings/TitleBarPicker.tsx
+++ b/src/renderer/components/settings/TitleBarPicker.tsx
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: GPL-3.0
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
- * Copyright (c) 2024 Vendicated and Vencord contributors
+ * Copyright (c) 2023 Vendicated and Vencord contributors
*/
import { Margins } from "@vencord/types/utils";
@@ -14,9 +14,10 @@ export const TitleBarPicker: SettingsComponent = ({ settings }) => {
return (
<>
- Customize apps title bar. Pick Discord if you want to use Discord's custom title bar. Requires a full restart
+ Customize apps title bar. Pick Discord if you want to use Discord's custom title bar. Requires a full
+ restart
-
+