minimize app on linux, fix #181, fix 51

This commit is contained in:
antelle 2016-04-07 19:33:01 +03:00
parent 09cb45198c
commit ba66c69235
3 changed files with 3 additions and 2 deletions

View File

@ -96,7 +96,7 @@ if (window.process && window.process.versions && window.process.versions.electro
this.remReq('app').minimizeApp();
},
canMinimize: function() {
return process.platform === 'win32';
return process.platform !== 'darwin';
},
updaterEnabled: function() {
return this.req('remote').process.argv.indexOf('--disable-updater') === -1;

View File

@ -73,7 +73,7 @@ app.openWindow = function(opts) {
return new BrowserWindow(opts);
};
app.minimizeApp = function() {
if (process.platform === 'win32') {
if (process.platform !== 'darwin') {
mainWindow.minimize();
mainWindow.setSkipTaskbar(true);
appIcon = new Tray(path.join(__dirname, 'icon.png'));

View File

@ -2,6 +2,7 @@ Release notes
-------------
##### v1.1.1 (2016-04-**)
Hotfix
`+` minimize app on linux
`+` display remembered keyfile name
`-` fix #182: save window position on Windows