mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Patch to have visible windows loaded from main gmodel to appear
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6170 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6382e105a6
commit
f9c20e9cd6
1 changed files with 8 additions and 1 deletions
|
@ -1145,7 +1145,14 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
[self setBackgroundColor:
|
||||
[unarchiver decodeObjectWithName:@"backgroundColor"]];
|
||||
if ([unarchiver decodeBOOLWithName:@"isVisible"])
|
||||
[self orderFront:nil];
|
||||
{
|
||||
/* If we are the main gmodel of the application, this code is
|
||||
being executed before the app became active, so we have to
|
||||
force ordering front of the window. TODO: Refine the code so
|
||||
that if we are not the main gmodel then a more appropriate
|
||||
[self orderFront:nil] is used.*/
|
||||
[self orderFrontRegardless];
|
||||
}
|
||||
|
||||
#if GNU_GUI_LIBRARY
|
||||
[[self contentView] setNeedsDisplay:YES];
|
||||
|
|
Loading…
Reference in a new issue