fix(preferences): add window title to preferences

Fixes T3458 Preferences panel shows up as "Electron" in Window menu
This commit is contained in:
Evan Morikawa 2015-08-31 17:25:33 -07:00
parent 550a7e0a8c
commit 13629f57dc
2 changed files with 2 additions and 0 deletions

View file

@ -46,6 +46,7 @@ module.exports =
ipc.on 'open-preferences', (detail) -> ipc.on 'open-preferences', (detail) ->
ReactRemote.openWindowForComponent(Preferences, { ReactRemote.openWindowForComponent(Preferences, {
tag: 'preferences' tag: 'preferences'
title: "Preferences"
width: 520 width: 520
resizable: false resizable: false
autosize: true autosize: true

View file

@ -211,6 +211,7 @@ var openWindowForComponent = function(Component, options) {
slashes: true slashes: true
}); });
var thinWindow = new BrowserWindow({ var thinWindow = new BrowserWindow({
title: options.title || "",
frame: process.platform !== 'darwin', frame: process.platform !== 'darwin',
width: options.width || 800, width: options.width || 800,
height: options.height || 600, height: options.height || 600,