mirror of
https://github.com/kwsch/pkNX.git
synced 2026-10-01 13:47:47 -05:00
Made the intention of this code more clear
This commit is contained in:
@@ -47,7 +47,9 @@ DataCache<T2> loader(GenericEditor<T2> form)
|
||||
return tableCache.Cache;
|
||||
}
|
||||
|
||||
Action? cb = addEntryCallback is { } x ? () => x.Invoke(tableCache.Root) : null;
|
||||
Action? cb = null;
|
||||
if (addEntryCallback != null)
|
||||
cb = () => addEntryCallback.Invoke(tableCache.Root);
|
||||
|
||||
using var form = new GenericEditor<T2>(loader, getName, title, rand, cb, canSave);
|
||||
form.ShowDialog();
|
||||
|
||||
Reference in New Issue
Block a user