Fix issue with properly hiding windows when calling testInterface:

This commit is contained in:
Gregory John Casamento 2023-12-14 19:15:05 -05:00
parent 334b525f7d
commit c4a69baec9

View file

@ -448,6 +448,10 @@
if([obj isVisible])
{
[_testingWindows addObject: obj];
if ([activeDoc window] != obj)
{
[obj close]; // close the visible windows...
}
}
}
@ -460,7 +464,7 @@
[_dockTile setShowsApplicationBadge: YES];
[_dockTile setBadgeLabel: @"Test!"];
// Encode palette classes with their equivalent substitutes
archiver = [[NSArchiver alloc] init];
[activeDoc deactivateEditors];
if ([self isInTool] == NO)
@ -748,6 +752,7 @@
[NSApp setMainMenu: _mainMenu];
[NSApp setApplicationIconImage: _gormImage];
[[NSApp mainMenu] display];
RELEASE(_dockTile);
e = [_testingWindows objectEnumerator];