mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-13 23:25:48 +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)
|
||||
{
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user