From 13629f57dc9b4c31734659ae54b70e230940f788 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Mon, 31 Aug 2015 17:25:33 -0700 Subject: [PATCH] fix(preferences): add window title to preferences Fixes T3458 Preferences panel shows up as "Electron" in Window menu --- internal_packages/preferences/lib/main.cjsx | 1 + src/react-remote/react-remote-parent.js | 1 + 2 files changed, 2 insertions(+) diff --git a/internal_packages/preferences/lib/main.cjsx b/internal_packages/preferences/lib/main.cjsx index 1689adf1c..d185e6a21 100644 --- a/internal_packages/preferences/lib/main.cjsx +++ b/internal_packages/preferences/lib/main.cjsx @@ -46,6 +46,7 @@ module.exports = ipc.on 'open-preferences', (detail) -> ReactRemote.openWindowForComponent(Preferences, { tag: 'preferences' + title: "Preferences" width: 520 resizable: false autosize: true diff --git a/src/react-remote/react-remote-parent.js b/src/react-remote/react-remote-parent.js index 96ab8d093..f277ffb98 100644 --- a/src/react-remote/react-remote-parent.js +++ b/src/react-remote/react-remote-parent.js @@ -211,6 +211,7 @@ var openWindowForComponent = function(Component, options) { slashes: true }); var thinWindow = new BrowserWindow({ + title: options.title || "", frame: process.platform !== 'darwin', width: options.width || 800, height: options.height || 600,