Fix variious issues

This commit is contained in:
Wojtek Figat
2024-11-21 23:42:05 +01:00
parent 826d37c513
commit f8f4edfa76
4 changed files with 6 additions and 4 deletions

View File

@@ -447,6 +447,8 @@ namespace FlaxEditor.Modules
private void StateMachineOnStateChanged()
{
if (Editor.StateMachine.CurrentState is States.ClosingState)
return;
UpdateToolstrip();
UpdateStatusBar();
}

View File

@@ -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;
}