Handle reentrant calls to ShowSystemWindow
- Issue MatterHackers/MCCentral#4227 Load filament wizard isn't switching panels correctly
This commit is contained in:
parent
e38e0eb42f
commit
0941f655eb
2 changed files with 7 additions and 1 deletions
|
|
@ -46,8 +46,9 @@ namespace MatterHackers.MatterControl
|
|||
platformWindow = openGLPlatformWindow;
|
||||
}
|
||||
|
||||
systemWindow.PlatformWindow = openGLPlatformWindow;
|
||||
base.ShowSystemWindow(systemWindow);
|
||||
|
||||
systemWindow.PlatformWindow = openGLPlatformWindow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -56,6 +56,11 @@ namespace MatterHackers.Agg.UI
|
|||
}
|
||||
else
|
||||
{
|
||||
if (systemWindow.PlatformWindow != null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var overlayWindow = new SystemWindow(_openWindows.FirstOrDefault().Width, _openWindows.FirstOrDefault().Height)
|
||||
{
|
||||
PlatformWindow = platformWindow
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue