[MM-39843] Show main window on second instance (#1848) (#1860)

(cherry picked from commit fbb3c9c705)

Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
This commit is contained in:
Mattermost Build 2021-11-09 15:27:29 +01:00 committed by GitHub
parent 38a0ab731e
commit 1db41a94ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -358,9 +358,7 @@ function handleAppSecondInstance(event: Event, argv: string[]) {
// Protocol handler for win32
// argv: An array of the second instances (command line / deep linked) arguments
const deeplinkingUrl = getDeeplinkingURL(argv);
if (deeplinkingUrl) {
openDeepLink(deeplinkingUrl);
}
WindowManager.showMainWindow(deeplinkingUrl);
}
function handleAppWindowAllClosed() {