Merge pull request #282 from williameveretteggplant/modal_linux_fix

This commit is contained in:
Gregory Casamento 2024-08-09 12:12:30 -04:00 committed by GitHub
commit ac56a0fe29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1677,7 +1677,7 @@ static BOOL _isAutolaunchChecked = NO;
[theWindow center];
[theWindow setLevel: NSModalPanelWindowLevel];
}
[theWindow orderFrontRegardless];
if ([self isActive] == YES)
{
if ([theWindow canBecomeKeyWindow] == YES)
@ -1689,6 +1689,7 @@ static BOOL _isAutolaunchChecked = NO;
[theWindow makeMainWindow];
}
}
[theWindow orderFrontRegardless];
return theSession;
}