Fix notifications display
All checks were successful
Build / Compute Version (push) Successful in 7s
Build / Build Nuget package (NuGet) (push) Successful in 4m9s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 4m22s
Build / Build Nuget package (SharedCringe) (push) Successful in 4m18s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m42s
Build / Build Launcher (push) Successful in 5m29s
All checks were successful
Build / Compute Version (push) Successful in 7s
Build / Build Nuget package (NuGet) (push) Successful in 4m9s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 4m22s
Build / Build Nuget package (SharedCringe) (push) Successful in 4m18s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m42s
Build / Build Launcher (push) Successful in 5m29s
Rename default source Remove plugins that aren't found (404) Fix duplicate ids in plugins list
This commit is contained in:
@@ -120,6 +120,7 @@ internal class PluginListComponent : IRenderComponent
|
||||
sortSpecs.SpecsDirty = false;
|
||||
}
|
||||
|
||||
var i = 0;
|
||||
foreach (var plugin in _plugins)
|
||||
{
|
||||
TableNextRow();
|
||||
@@ -132,8 +133,18 @@ internal class PluginListComponent : IRenderComponent
|
||||
plugin.IsReloading ? Color.Yellow.ToFloat4() : plugin.HasConfig ? Color.Red.ToFloat4() : Color.DarkRed.ToFloat4());
|
||||
}
|
||||
|
||||
if (Selectable(plugin.Metadata.Name, false, ImGuiSelectableFlags.SpanAllColumns) && !plugin.IsReloading)
|
||||
if (Selectable($"{plugin.Metadata.Name}##{++i}", false, ImGuiSelectableFlags.SpanAllColumns) && !plugin.IsReloading)
|
||||
plugin.OpenConfig();
|
||||
|
||||
if (!plugin.IsReloading && plugin.IsLocal && BeginPopupContextItem($"##{plugin.Metadata.Name}ContextMenu{i}"))
|
||||
{
|
||||
if (Button($"Reload##{i}"))
|
||||
{
|
||||
PluginsLifetime.ReloadPlugin(plugin).ConfigureAwait(false);
|
||||
}
|
||||
EndPopup();
|
||||
}
|
||||
|
||||
if (plugin.WrappedInstance?.LastException is not null && !plugin.IsReloading)
|
||||
{
|
||||
PopStyleColor();
|
||||
@@ -143,16 +154,6 @@ internal class PluginListComponent : IRenderComponent
|
||||
}
|
||||
EndDisabled();
|
||||
|
||||
if (!plugin.IsReloading && BeginPopupContextItem($"##{plugin.Metadata.Name}ContextMenu"))
|
||||
{
|
||||
BeginDisabled(!plugin.IsLocal);
|
||||
if (Button("Reload"))
|
||||
{
|
||||
PluginsLifetime.ReloadPlugin(plugin).ConfigureAwait(false);
|
||||
}
|
||||
EndDisabled();
|
||||
EndPopup();
|
||||
}
|
||||
|
||||
TableNextColumn();
|
||||
Text(plugin.Metadata.Version.ToString());
|
||||
|
Reference in New Issue
Block a user