chore: make the linter happy once again
This commit is contained in:
parent
7592f0be21
commit
ffa6d930da
3 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 (
|
||||
<>
|
||||
<Forms.FormText className={Margins.bottom8}>
|
||||
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
|
||||
</Forms.FormText>
|
||||
|
||||
|
||||
<Select
|
||||
placeholder="Hidden"
|
||||
options={[
|
||||
|
|
Loading…
Reference in a new issue