Skip to content

Commit 3d0c491

Browse files
committed
fix: Hide "StringTableCollection"s if the flag is off
1 parent 227bfd9 commit 3d0c491

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Assets/Plugins/LocalizationExtension/Editor/Google/StringTableCollection/StringTableCollectionBundleEditor.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,15 @@ private void DrawStringTableCollections()
7272
};
7373

7474
_showStringTableCollections = EditorGUILayout.Foldout(_showStringTableCollections, "Target \"StringTableCollection\"s", foldoutStyle);
75+
if (!_showStringTableCollections)
76+
{
77+
return;
78+
}
7579

76-
var stringTableCollections = _stringTableCollectionsConverter.Convert(Bundle.TargetFolders);
7780
using var h = new EditorGUILayout.VerticalScope(GUI.skin.box);
7881
using var g = new EditorGUI.DisabledGroupScope(true);
82+
83+
var stringTableCollections = _stringTableCollectionsConverter.Convert(Bundle.TargetFolders);
7984
foreach (var collection in stringTableCollections)
8085
{
8186
EditorGUILayout.ObjectField(collection, typeof(StringTableCollection), allowSceneObjects: false);

0 commit comments

Comments
 (0)