Closed catz closed 1 year ago
@catz Can you give an example where plugins should be doing this? The current behaviour of the Desktop App is to not open another popup (or a plugin URL in the same popup window) so I can't see where this would be happening.
Hello Devin,
I will try to explain.
Can't say it's a big issue but imho fix seems very trivial.
@catz Which plugin are you using here?
@devinbinnie this is our own (work in progress) plugin.
@catz I've made a change that should address your issue: https://github.com/mattermost/desktop/pull/2581 There will be a build generated shortly, can you test and make sure it works for you?
I confirm (by marking "x" in the [ ] below: [x]):
Show (focus on) already opened popup on url change. It's hard to understand what's going on when main app is in fullscreen and popup is in background.
Environment
Steps to reproduce
Expected behavior
Popup gets focus.
Observed behavior
Popup is in background.
Possible fixes
Change line https://github.com/mattermost/desktop/blob/master/src/main/views/webContentEvents.ts#L195
From
this.popupWindow.once('ready-to-show', () => {
to
this.popupWindow.on('ready-to-show', () => {