mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 02:03:07 +08:00
fix(preferences): add window title to preferences
Fixes T3458 Preferences panel shows up as "Electron" in Window menu
This commit is contained in:
parent
550a7e0a8c
commit
13629f57dc
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
1
src/react-remote/react-remote-parent.js
vendored
1
src/react-remote/react-remote-parent.js
vendored
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue