fix: do not activate app when showing a panel on Mac (#41750)
* fix: do not activate app when showing or focusing a panel on Mac * restored panel activation test
This commit is contained in:
parent
db11090e58
commit
05fba85aa3
4 changed files with 28 additions and 32 deletions
|
@ -1246,7 +1246,6 @@ describe('BrowserWindow module', () => {
|
|||
}
|
||||
});
|
||||
|
||||
// FIXME: disabled in `disabled-tests.json`
|
||||
ifit(process.platform === 'darwin')('it does not activate the app if focusing an inactive panel', async () => {
|
||||
// Show to focus app, then remove existing window
|
||||
w.show();
|
||||
|
@ -1269,7 +1268,7 @@ describe('BrowserWindow module', () => {
|
|||
const isShow = once(w, 'show');
|
||||
const isFocus = once(w, 'focus');
|
||||
|
||||
w.showInactive();
|
||||
w.show();
|
||||
w.focus();
|
||||
|
||||
await isShow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue