fix lint
This commit is contained in:
@@ -66,19 +66,19 @@ const SettingsOptions: Record<string, Array<BooleanSetting | SettingsComponent>>
|
||||
key: "enableMenu",
|
||||
title: "Enable Menu Bar",
|
||||
description: "Enables the application menu bar. Press ALT to toggle visibility.",
|
||||
disabled: () => Settings.store.nativeTitleBar !== true
|
||||
disabled: () => !Settings.store.nativeTitleBar
|
||||
},
|
||||
{
|
||||
key: "enableShadow",
|
||||
title: "Enable Window Shadow",
|
||||
description: "Enables the window shadow. Requires a full restart.",
|
||||
disabled: () => Settings.store.nativeTitleBar === true
|
||||
disabled: () => Settings.store.nativeTitleBar
|
||||
},
|
||||
{
|
||||
key: "enableRoundedCorners",
|
||||
title: "Enable Rounded Corners",
|
||||
description: "Enables rounded corners. Requires a full restart.",
|
||||
disabled: () => Settings.store.nativeTitleBar === true
|
||||
disabled: () => Settings.store.nativeTitleBar
|
||||
},
|
||||
{
|
||||
key: "enableSplashScreen",
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { Settings } from "renderer/settings";
|
||||
import { isMac } from "renderer/utils";
|
||||
|
||||
import { addPatch } from "./shared";
|
||||
@@ -21,7 +20,6 @@ addPatch({
|
||||
],
|
||||
|
||||
getPlatformClass() {
|
||||
if (Settings.store.customTitleBar) return "platform-win";
|
||||
if (isMac) return "platform-osx";
|
||||
return "platform-web";
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import { Settings } from "renderer/settings";
|
||||
|
||||
import { addPatch } from "./shared";
|
||||
|
||||
if (Settings.store.customTitleBar)
|
||||
if (!Settings.store.nativeTitleBar)
|
||||
addPatch({
|
||||
patches: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user