mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 11:41:05 +00:00
Fix issue with properly hiding windows when calling testInterface:
This commit is contained in:
parent
334b525f7d
commit
c4a69baec9
1 changed files with 7 additions and 2 deletions
|
@ -448,9 +448,13 @@
|
||||||
if([obj isVisible])
|
if([obj isVisible])
|
||||||
{
|
{
|
||||||
[_testingWindows addObject: obj];
|
[_testingWindows addObject: obj];
|
||||||
|
if ([activeDoc window] != obj)
|
||||||
|
{
|
||||||
|
[obj close]; // close the visible windows...
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set here, so that beginArchiving and endArchiving do not use templates.
|
// set here, so that beginArchiving and endArchiving do not use templates.
|
||||||
_isTesting = YES;
|
_isTesting = YES;
|
||||||
// [NSApp setApplicationIconImage: _testingImage];
|
// [NSApp setApplicationIconImage: _testingImage];
|
||||||
|
@ -459,8 +463,8 @@
|
||||||
_dockTile = [[NSDockTile alloc] init];
|
_dockTile = [[NSDockTile alloc] init];
|
||||||
[_dockTile setShowsApplicationBadge: YES];
|
[_dockTile setShowsApplicationBadge: YES];
|
||||||
[_dockTile setBadgeLabel: @"Test!"];
|
[_dockTile setBadgeLabel: @"Test!"];
|
||||||
|
|
||||||
|
|
||||||
|
// Encode palette classes with their equivalent substitutes
|
||||||
archiver = [[NSArchiver alloc] init];
|
archiver = [[NSArchiver alloc] init];
|
||||||
[activeDoc deactivateEditors];
|
[activeDoc deactivateEditors];
|
||||||
if ([self isInTool] == NO)
|
if ([self isInTool] == NO)
|
||||||
|
@ -748,6 +752,7 @@
|
||||||
[NSApp setMainMenu: _mainMenu];
|
[NSApp setMainMenu: _mainMenu];
|
||||||
[NSApp setApplicationIconImage: _gormImage];
|
[NSApp setApplicationIconImage: _gormImage];
|
||||||
[[NSApp mainMenu] display];
|
[[NSApp mainMenu] display];
|
||||||
|
|
||||||
RELEASE(_dockTile);
|
RELEASE(_dockTile);
|
||||||
|
|
||||||
e = [_testingWindows objectEnumerator];
|
e = [_testingWindows objectEnumerator];
|
||||||
|
|
Loading…
Reference in a new issue