mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
💄 Show native window controls on macOS crash dialog (#16357)
This commit is contained in:
parent
cc59bd1087
commit
d15f957239
2 changed files with 26 additions and 3 deletions
|
|
@ -196,7 +196,9 @@ const showErrorWindow = (title, content) => {
|
|||
const errWindow = new BrowserWindow({
|
||||
width: Math.floor(screen.getPrimaryDisplay().size.width * 0.5),
|
||||
height: Math.floor(screen.getPrimaryDisplay().workAreaSize.height * 0.8),
|
||||
frame: false,
|
||||
frame: "darwin" === process.platform,
|
||||
titleBarStyle: "hidden",
|
||||
fullscreenable: false,
|
||||
icon: path.join(appDir, "stage", "icon-large.png"),
|
||||
webPreferences: {
|
||||
nodeIntegration: true, webviewTag: true, webSecurity: false, contextIsolation: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue