Skip to content

Commit

Permalink
set icon for BrowserWindows so Linux Dock looks correct (no more ques…
Browse files Browse the repository at this point in the history
…tion mark)
  • Loading branch information
todbot committed Feb 15, 2018
1 parent 2ffbe04 commit e873cc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ var handleUrl = function(e,url) {
var openAboutWindow = function () {
// DEV: aboutWindow will be garbage collection automatically
var aboutWindow = new BrowserWindow({
icon: path.join(__dirname, 'images/icons/blink1mk2-icon2-128px.png'),
title: "About Blink1Control2",
alwaysOnTop: true,
autoHideMenuBar: true,
height: 375,
width: 500
// icon: assets['icon-32'],
});
aboutWindow.webContents.on('new-window', function(e,url) { handleUrl(e,url); } );
aboutWindow.webContents.on('will-navigate', function(e,url) { handleUrl(e,url); } );
Expand Down Expand Up @@ -134,7 +134,6 @@ var openHelpWindow = function() {
center: true,
height: 700,
width: 800
// icon: assets['icon-32'],
});
helpWindow.webContents.on('new-window', function(e,url) { handleUrl(e,url); } );
helpWindow.webContents.on('will-navigate', function(e,url) { handleUrl(e,url); } );
Expand Down Expand Up @@ -199,6 +198,7 @@ app.on('ready', function () {

if( process.env.NODE_ENV === 'development' ) {
mainWindow = new BrowserWindow({
icon: path.join(__dirname, 'images/icons/blink1mk2-icon2-128px.png'),
title: "Blink1Control2",
maximizable: false,
width: 1040,
Expand All @@ -217,6 +217,7 @@ app.on('ready', function () {
}
else {
mainWindow = new BrowserWindow({
icon: path.join(__dirname, 'images/icons/blink1mk2-icon2-128px.png'),
title: "Blink1Control2",
width: 1040,
height: 700 + ((process.platform !== 'darwin') ? 20 : 0),
Expand Down

0 comments on commit e873cc7

Please sign in to comment.