mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
also show window if not visible
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user