remove columns in TreeModel along with TreeView instead of in separate areas

This commit is contained in:
Michael Becker 2021-08-27 20:41:05 -04:00
parent 6c1bee7f62
commit 1b28f8603d
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -836,6 +836,7 @@ namespace UniversalEditor.Editors.FileSystem
for (int i = DELIVERED_COLUMNS_COUNT; i < tv.Columns.Count; i++)
{
tm.Columns.RemoveAt(i);
tv.Columns.Remove(tv.Columns[i]);
}
for (int i = 0; i < fsom.AdditionalDetails.Count; i++)
@ -982,11 +983,6 @@ namespace UniversalEditor.Editors.FileSystem
if (!IsCreated) return;
for (int i = DELIVERED_COLUMNS_COUNT; i < tm.Columns.Count; i++)
{
tm.Columns.RemoveAt(i);
}
FileSystemObjectModel fsom = (ObjectModel as FileSystemObjectModel);
if (fsom == null) return;