mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 07:44:09 +02:00
Null check
This commit is contained in:
parent
06ac941471
commit
20b1827632
1 changed files with 7 additions and 4 deletions
|
@ -3912,11 +3912,14 @@ namespace IDE
|
||||||
if (!nextTabbedView.mWidgetWindow.mHasFocus)
|
if (!nextTabbedView.mWidgetWindow.mHasFocus)
|
||||||
nextTabbedView.mWidgetWindow.SetForeground();
|
nextTabbedView.mWidgetWindow.SetForeground();
|
||||||
var activeTab = nextTabbedView.GetActiveTab();
|
var activeTab = nextTabbedView.GetActiveTab();
|
||||||
activeTab.Activate();
|
if (activeTab != null)
|
||||||
|
|
||||||
if (let sourceViewPanel = activeTab.mContent as SourceViewPanel)
|
|
||||||
{
|
{
|
||||||
sourceViewPanel.HilitePosition(.Always);
|
activeTab.Activate();
|
||||||
|
|
||||||
|
if (let sourceViewPanel = activeTab.mContent as SourceViewPanel)
|
||||||
|
{
|
||||||
|
sourceViewPanel.HilitePosition(.Always);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue