Debugger: Fix incorrect behavior when asking to activat.
GraphicalUserInterface: - The Show() method now checks if the team window is already visible. If it is, we instead call Activate() to focus it. Fixes the problem that attempting to attach to a team which we already had a running team debugger for would appear to do nothing, rather than focusing that window.
This commit is contained in:
@@ -178,7 +178,10 @@ GraphicalUserInterface::Init(Team* team, UserInterfaceListener* listener)
|
|||||||
void
|
void
|
||||||
GraphicalUserInterface::Show()
|
GraphicalUserInterface::Show()
|
||||||
{
|
{
|
||||||
|
if (fTeamWindow->IsHidden())
|
||||||
fTeamWindow->Show();
|
fTeamWindow->Show();
|
||||||
|
else
|
||||||
|
fTeamWindow->Activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user