mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-05 07:45:59 +02:00
Fixes for safe mode
This commit is contained in:
parent
8d0f70588f
commit
3681b521b5
1 changed files with 10 additions and 4 deletions
|
@ -876,17 +876,23 @@ namespace IDE.ui
|
||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
|
if (gApp.mBfResolveCompiler == null)
|
||||||
|
return;
|
||||||
|
|
||||||
var focusedItem = (ClassViewListViewItem)mTypeLV.GetRoot().FindFocusedItem();
|
var focusedItem = (ClassViewListViewItem)mTypeLV.GetRoot().FindFocusedItem();
|
||||||
var focusedStr = scope String();
|
var focusedStr = scope String();
|
||||||
if (focusedItem != null)
|
if (focusedItem != null)
|
||||||
GetName(focusedItem, focusedStr);
|
GetName(focusedItem, focusedStr);
|
||||||
|
|
||||||
|
if (gApp.mBfResolveCompiler != null)
|
||||||
|
{
|
||||||
int32 compileRevision = gApp.mBfResolveCompiler.GetCompileRevision();
|
int32 compileRevision = gApp.mBfResolveCompiler.GetCompileRevision();
|
||||||
if (mLastCompileRevision != compileRevision)
|
if (mLastCompileRevision != compileRevision)
|
||||||
{
|
{
|
||||||
mCompileRevisionDirtyDelay = 30;
|
mCompileRevisionDirtyDelay = 30;
|
||||||
mLastCompileRevision = compileRevision;
|
mLastCompileRevision = compileRevision;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((mCompileRevisionDirtyDelay > 0) && (--mCompileRevisionDirtyDelay == 0))
|
if ((mCompileRevisionDirtyDelay > 0) && (--mCompileRevisionDirtyDelay == 0))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue