Skip to content

Commit c0d134e

Browse files
committed
Don't show database size in bytes when editing multiple objects
1 parent 1bf6d60 commit c0d134e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Editor/SQLiteAssetEditor.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,18 @@ public void Deconstruct(out string name, out string sql)
4646
public override void OnInspectorGUI()
4747
{
4848
DrawDefaultInspector();
49-
EditorGUILayout.Space();
50-
51-
using (new EditorGUI.DisabledScope(true))
52-
{
53-
EditorGUILayout.TextField("Database size in bytes", EditorUtility.FormatBytes(((SQLiteAsset) target).Bytes.Length));
54-
}
55-
5649
if (serializedObject.isEditingMultipleObjects)
5750
{
5851
return;
5952
}
6053

6154
EditorGUILayout.Space();
55+
using (new EditorGUI.DisabledScope(true))
56+
{
57+
EditorGUILayout.TextField("Database size in bytes", EditorUtility.FormatBytes(((SQLiteAsset) target).Bytes.Length));
58+
}
6259

60+
EditorGUILayout.Space();
6361
using (new EditorGUI.DisabledScope(true))
6462
using (var db = ((SQLiteAsset) target).CreateConnection())
6563
{

0 commit comments

Comments
 (0)