Commit a984dec8 authored by David Fuhrmann's avatar David Fuhrmann

macosx: do not load windows if not necessary

parent 84866202
......@@ -194,7 +194,7 @@
#pragma mark generic code
- (void)updateCocoaWindowLevel:(NSInteger)i_level
{
if (self.window && [self.window isVisible] && [self.window level] != i_level)
if (self.isWindowLoaded && [self.window isVisible] && [self.window level] != i_level)
[self.window setLevel: i_level];
}
......
......@@ -122,7 +122,7 @@
- (void)updateCocoaWindowLevel:(NSInteger)i_level
{
if (self.window && [self.window isVisible] && [self.window level] != i_level)
if (self.isWindowLoaded && [self.window isVisible] && [self.window level] != i_level)
[self.window setLevel: i_level];
}
......
......@@ -88,7 +88,7 @@
- (void)updateCocoaWindowLevel:(NSInteger)i_level
{
if (self.window && [self.window isVisible] && [self.window level] != i_level)
if (self.isWindowLoaded && [self.window isVisible] && [self.window level] != i_level)
[self.window setLevel: i_level];
}
......
......@@ -210,7 +210,7 @@
- (void)updateCocoaWindowLevel:(NSInteger)i_level
{
if (self.window && [self.window isVisible] && [self.window level] != i_level)
if (self.isWindowLoaded && [self.window isVisible] && [self.window level] != i_level)
[self.window setLevel: i_level];
}
......
......@@ -99,7 +99,7 @@
- (void)updateCocoaWindowLevel:(NSInteger)i_level
{
if (self.window && [self.window isVisible] && [self.window level] != i_level)
if (self.isWindowLoaded && [self.window isVisible] && [self.window level] != i_level)
[self.window setLevel: i_level];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment