hide mod in TaskAdder if it has no roles

This commit is contained in:
XtraCube committed 2024-09-02 15:22:50 -04:00
1 parent 0e56a30c5c
commit 51d08bb168
1 file changed
+5
+5
View File
@@ -62,6 +62,11 @@ public static class TaskAdderPatch
foreach (var plugin in MiraPluginManager.Instance.RegisteredPlugins())
{
if (plugin.CustomRoles.Count == 0)
{
continue;
}
var newFolder = Object.Instantiate(__instance.RootFolderPrefab, _scroller.Inner);
newFolder.FolderName = newFolder.name = plugin.PluginInfo.Metadata.Name;
newFolder.gameObject.SetActive(false);