fix: Try to make github actions test happy

This commit is contained in:
khcrysalis 2024-09-14 15:40:53 -07:00
parent dbd489bd93
commit 7592f0be21
3 changed files with 7 additions and 5 deletions

View file

@ -424,14 +424,15 @@ function createMainWindow() {
transparencyOption !== "none" && { transparencyOption !== "none" && {
transparent: true transparent: true
}), }),
...(staticTitle && { title: "Vesktop" }), ...(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(), ...getWindowBoundsOptions(),
autoHideMenuBar: enableMenu autoHideMenuBar: enableMenu
})); }));
win.setMenuBarVisibility(false); win.setMenuBarVisibility(false);
if (process.platform === "darwin" && titleBar === "custom") { win.setWindowButtonVisibility(false); } // Hide the traffic lights if (process.platform === "darwin" && titleBar === "custom") {
win.setWindowButtonVisibility(false); // Hide the traffic lights
}
win.on("close", e => { win.on("close", e => {
const useTray = !isDeckGameMode && Settings.store.minimizeToTray !== false && Settings.store.tray !== false; const useTray = !isDeckGameMode && Settings.store.minimizeToTray !== false && Settings.store.tray !== false;

View file

@ -55,7 +55,7 @@ const SettingsOptions: Record<string, Array<BooleanSetting | SettingsComponent>>
defaultValue: false, defaultValue: false,
invisible: () => isMac, invisible: () => isMac,
disabled: () => Settings.store.titleBar === "custom" ?? isWindows disabled: () => Settings.store.titleBar === "custom" ?? isWindows
}, }
], ],
"User Interface": [ "User Interface": [
{ {

View file

@ -16,6 +16,7 @@ export const TitleBarPicker: SettingsComponent = ({ settings }) => {
<Forms.FormText className={Margins.bottom8}> <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> </Forms.FormText>
<Select <Select
placeholder="Hidden" placeholder="Hidden"
options={[ options={[