Fix maximise button being wrongly disabled
This commit is contained in:
parent
72f83c3ac4
commit
3ee57831b9
1 changed files with 7 additions and 7 deletions
|
@ -262,6 +262,8 @@ function createMainWindow() {
|
||||||
removeSettingsListeners();
|
removeSettingsListeners();
|
||||||
removeVencordSettingsListeners();
|
removeVencordSettingsListeners();
|
||||||
|
|
||||||
|
const { staticTitle, transparencyOption } = Settings.store;
|
||||||
|
const { frameless, macosTranslucency } = VencordSettings.store;
|
||||||
const win = (mainWin = new BrowserWindow({
|
const win = (mainWin = new BrowserWindow({
|
||||||
show: false,
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
@ -273,18 +275,16 @@ function createMainWindow() {
|
||||||
spellcheck: true
|
spellcheck: true
|
||||||
},
|
},
|
||||||
icon: ICON_PATH,
|
icon: ICON_PATH,
|
||||||
frame: VencordSettings.store.frameless !== true,
|
frame: frameless !== true,
|
||||||
...(Settings.store.transparencyOption !== "none"
|
...(transparencyOption && transparencyOption !== "none"
|
||||||
? {
|
? {
|
||||||
backgroundColor: "#00000000",
|
backgroundColor: "#00000000",
|
||||||
backgroundMaterial: Settings.store.transparencyOption,
|
backgroundMaterial: Settings.store.transparencyOption,
|
||||||
transparent: true
|
transparent: true
|
||||||
}
|
}
|
||||||
: {
|
: {}),
|
||||||
transparent: false
|
...(staticTitle ? { title: "Vencord" } : {}),
|
||||||
}),
|
...(macosTranslucency
|
||||||
...(Settings.store.staticTitle ? { title: "Vencord" } : {}),
|
|
||||||
...(VencordSettings.store.macosTranslucency
|
|
||||||
? {
|
? {
|
||||||
vibrancy: "sidebar",
|
vibrancy: "sidebar",
|
||||||
backgroundColor: "#ffffff00"
|
backgroundColor: "#ffffff00"
|
||||||
|
|
Loading…
Reference in a new issue