Browse Source

simplified window icon file type selection

pull/1265/head
grummi92 7 years ago
parent
commit
ef9d0524e0
  1. 7
      electron/main.js

7
electron/main.js

@ -138,16 +138,11 @@ function handleSquirrelEvent() {
let mainWindow;
let isQuitting = false;
let iconPath = __dirname + '/../resources/Icon.ico';
if (process.platform === 'linux') {
iconPath = __dirname + '/../resources/Icon.png';
}
function createWindow () {
// Create the browser window using the state information
mainWindow = new BrowserWindow({
title: 'Rambox'
,icon: iconPath
,icon: __dirname + '/../resources/Icon.' + (process.platform === 'linux' ? 'png' : 'ico')
,backgroundColor: '#FFF'
,x: config.get('x')
,y: config.get('y')

Loading…
Cancel
Save