mirror of https://github.com/keeweb/keeweb.git
minimize app on linux, fix #181, fix 51
This commit is contained in:
parent
09cb45198c
commit
ba66c69235
|
@ -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;
|
||||
|
|
|
@ -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'));
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue