Skip to content

Commit 0439fa0

Browse files
committed
Fix null selected Locale
1 parent 78871b2 commit 0439fa0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Assets/AutoTranslate/Editor/AutoTranslate_EditorWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void OnGUI()
118118
EditorGUILayout.EndVertical();
119119
EditorGUILayout.BeginVertical(GUILayout.ExpandHeight(true));
120120
_dropdownLanguages.Draw();
121-
if ( translator.ValidateLocale(_selectedLocale.Identifier.Code) == false)
121+
if ( _selectedLocale != null && translator.ValidateLocale(_selectedLocale.Identifier.Code) == false)
122122
{
123123
EditorGUILayout.HelpBox(translator.GetNameService() + " service does not support some dialects of languages, the choice of language will be changed to the generally accepted.", MessageType.Warning);
124124
}

Assets/AutoTranslate/GUIPro/CheckListGUI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class CheckListGUI : BaseGUI
1212
public int MinWidth = 100;
1313
public int Height;
1414
public int MinHeight = 100;
15-
public Color BackColor = Color.white;
15+
public Color BackColor = Color.gray;
1616

1717
private GUIStyle CheckListStyle;
1818
private Texture2D texture2D;

0 commit comments

Comments
 (0)