fix: label plugins that aren't actively being tested "available" in the installer

This commit is contained in:
goat 2022-10-30 11:41:07 +01:00
parent 53211c0a7b
commit 46cb6a3b74
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 37 additions and 12 deletions

View file

@ -1677,6 +1677,7 @@ internal class PluginInstallerWindow : Window, IDisposable
var pluginManager = Service<PluginManager>.Get();
var useTesting = pluginManager.UseTesting(manifest);
var activelyTesting = useTesting || manifest.IsTestingExclusive;
var wasSeen = this.WasPluginSeen(manifest.InternalName);
var isOutdated = manifest.DalamudApiLevel < PluginManager.DalamudApiLevel;
@ -1692,10 +1693,14 @@ internal class PluginInstallerWindow : Window, IDisposable
var label = manifest.Name;
// Testing
if (useTesting || manifest.IsTestingExclusive)
if (activelyTesting)
{
label += Locs.PluginTitleMod_TestingVersion;
}
else if (configuration.DoPluginTest && PluginManager.HasTestingVersion(manifest))
{
label += Locs.PluginTitleMod_TestingAvailable;
}
ImGui.PushID($"available{index}{manifest.InternalName}");