1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-05 18:47:52 +01:00

also show window if not visible

This commit is contained in:
Kyle Spearrin 2019-07-09 08:53:38 -04:00
parent a631bd990a
commit 6789b8c8a2

View File

@ -36,7 +36,7 @@ export class WindowMain {
app.on('second-instance', (event, commandLine, workingDirectory) => {
// Someone tried to run a second instance, we should focus our window.
if (this.win != null) {
if (this.win.isMinimized()) {
if (this.win.isMinimized() || !this.win.isVisible()) {
this.win.show();
}
this.win.focus();