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

View file

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

View file

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