push modal window to top later in process

This commit is contained in:
williameveretteggplant 2024-08-08 10:16:27 -06:00 committed by GitHub
parent 8760810340
commit dd67057784
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;
}