mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-26 19:48:01 +02:00
Properly lock around VerifyTypeName
This commit is contained in:
parent
fb1f538d15
commit
a8a02870dc
2 changed files with 25 additions and 13 deletions
|
@ -282,8 +282,13 @@ namespace IDE.ui
|
|||
typeName.RemoveFromStart(1);
|
||||
}
|
||||
|
||||
if (!gApp.mBfResolveCompiler.VerifyTypeName(scope String(typeName), -1))
|
||||
isValid = false;
|
||||
if (gApp.mBfResolveCompiler?.IsPerformingBackgroundOperation() == false)
|
||||
{
|
||||
gApp.mBfResolveSystem.Lock(0);
|
||||
if (!gApp.mBfResolveCompiler.VerifyTypeName(scope String(typeName), -1))
|
||||
isValid = false;
|
||||
gApp.mBfResolveSystem.Unlock();
|
||||
}
|
||||
}
|
||||
}
|
||||
subItem.mTextColor = isValid ? 0xFFFFFFFF : 0xFFFF8080;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue