mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-29 18:32:55 +08:00
Fix for crash when closing DX window when CW not active
This commit is contained in:
parent
bbdbb6ae59
commit
d6039e87ab
@ -284,6 +284,7 @@ namespace CodeWalker.Rendering
|
|||||||
if (Form.ActiveForm == null)
|
if (Form.ActiveForm == null)
|
||||||
{
|
{
|
||||||
Thread.Sleep(100); //reduce the FPS when the app isn't active (maybe this should be configurable?)
|
Thread.Sleep(100); //reduce the FPS when the app isn't active (maybe this should be configurable?)
|
||||||
|
if (context.IsDisposed) return; //if form closed while sleeping (eg from rightclick on taskbar)
|
||||||
}
|
}
|
||||||
|
|
||||||
Rendering = true;
|
Rendering = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user