Fix variious issues
This commit is contained in:
@@ -447,6 +447,8 @@ namespace FlaxEditor.Modules
|
||||
|
||||
private void StateMachineOnStateChanged()
|
||||
{
|
||||
if (Editor.StateMachine.CurrentState is States.ClosingState)
|
||||
return;
|
||||
UpdateToolstrip();
|
||||
UpdateStatusBar();
|
||||
}
|
||||
|
||||
@@ -648,7 +648,7 @@ namespace FlaxEditor.Windows
|
||||
/// <returns>True if can build, otherwise false.</returns>
|
||||
public bool CanBuild(PlatformType platformType)
|
||||
{
|
||||
if (_buildTabProxy.PerPlatformOptions.TryGetValue(platformType, out var platform))
|
||||
if (_buildTabProxy != null && _buildTabProxy.PerPlatformOptions.TryGetValue(platformType, out var platform))
|
||||
return platform.IsAvailable && platform.IsSupported;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user