Fix creating localization table on blank project

#1060
This commit is contained in:
Wojtek Figat
2023-05-05 14:54:42 +02:00
parent 315df12fbe
commit 37e8fa7b76
5 changed files with 14 additions and 6 deletions

View File

@@ -126,6 +126,10 @@ namespace FlaxEditor.Windows.Assets
_presenter.NoSelectionText = "Failed to load asset. See log for more. " + ex.Message.Replace('\n', ' ');
}
}
else if (string.IsNullOrEmpty(dataTypeName))
{
_presenter.NoSelectionText = "Empty data type.";
}
else
{
_presenter.NoSelectionText = string.Format("Missing type '{0}'.", dataTypeName);