Sfoglia il codice sorgente

Fix issue with setTitleBarOverlay method on non-win32 platforms.

Andrii Zhovtiak 2 anni fa
parent
commit
79cabb6eda
1 ha cambiato i file con 9 aggiunte e 8 eliminazioni
  1. 9 8
      app/lib/window.ts

+ 9 - 8
app/lib/window.ts

@@ -392,14 +392,15 @@ export class Window {
                 return
             }
 
-            const symbolColor: string = theme.foreground
-
-            this.window.setTitleBarOverlay(
-                {
-                    symbolColor: symbolColor,
-                    height: 32,
-                },
-            )
+            if (process.platform === 'win32') {
+                const symbolColor: string = theme.foreground
+                this.window.setTitleBarOverlay(
+                    {
+                        symbolColor: symbolColor,
+                        height: 32,
+                    },
+                )
+            }
         })
 
         ipcMain.on('window-set-title', (event, title) => {