This commit is contained in:
Eugene Pankov
2022-12-05 14:52:23 +01:00
parent 2e9344f8b7
commit 73e25ed099
4 changed files with 6 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ export class Window {
}
}
if ((this.configStore.appearance || {}).frame === 'native') {
if (this.configStore.appearance?.frame === 'native') {
bwOptions.frame = true
} else {
if (process.platform === 'darwin') {
@@ -108,7 +108,7 @@ export class Window {
this.window.once('ready-to-show', () => {
if (process.platform === 'darwin') {
this.window.setVibrancy(macOSVibrancyType)
} else if (process.platform === 'win32' && (this.configStore.appearance || {}).vibrancy) {
} else if (process.platform === 'win32' && this.configStore.appearance?.vibrancy) {
this.setVibrancy(true)
}