Change logic on what goes in the toolbox
If a tool has no toolattribute, it is presumed to be released. Fixes #2015
This commit is contained in:
parent
59a67329c7
commit
4236662f53
|
@ -46,7 +46,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
.Where(t => typeof(Form).IsAssignableFrom(t))
|
||||
.Where(t => !typeof(ToolBox).IsAssignableFrom(t))
|
||||
.Where(t => ServiceInjector.IsAvailable(Emulator.ServiceProvider, t))
|
||||
.Where(t => VersionInfo.DeveloperBuild || t.GetCustomAttributes(false).OfType<ToolAttribute>().Any(a => a.Released));
|
||||
.Where(t => VersionInfo.DeveloperBuild || !t.GetCustomAttributes(false).OfType<ToolAttribute>().Any(a => !a.Released));
|
||||
|
||||
foreach (var t in tools)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue