Api: Show nm columns from favourites

Need to update preferences before submitting
This commit is contained in:
nathan 2023-10-03 11:53:14 -06:00
parent 9c244a45f6
commit 8584befb83

View File

@ -2238,6 +2238,11 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
}
}
columnMgr.setColumnVisibilitySet(visibility);
// We don't want to update user's preference, so directly update
this.dataview._updateColumns();
if(need_reload)
{
// We need to change preferences and reload to get columns that were hidden during the first load
@ -2246,11 +2251,6 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
return;
}
columnMgr.setColumnVisibilitySet(visibility);
// We don't want to update user's preference, so directly update
this.dataview._updateColumns();
// Allow column widgets a chance to resize
this.iterateOver(function(widget)
{