mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-17 05:54:51 +08:00
Fix for crash when closing DX window when CW not active
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user