mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
pi: correctly clear highlighted categories when clearing the search bar
This commit is contained in:
parent
a8025298ea
commit
79392230c4
2 changed files with 3 additions and 1 deletions
|
|
@ -373,6 +373,8 @@ internal class PluginCategoryManager
|
|||
/// <param name="plugins">List of plugins whose categories should be highlighted.</param>
|
||||
public void SetCategoryHighlightsForPlugins(IEnumerable<PluginManifest> plugins)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(plugins);
|
||||
|
||||
this.highlightedCategoryKinds.Clear();
|
||||
|
||||
foreach (var entry in plugins)
|
||||
|
|
|
|||
|
|
@ -3573,7 +3573,7 @@ internal class PluginInstallerWindow : Window, IDisposable
|
|||
{
|
||||
if (string.IsNullOrEmpty(this.searchText))
|
||||
{
|
||||
this.categoryManager.SetCategoryHighlightsForPlugins(null);
|
||||
this.categoryManager.SetCategoryHighlightsForPlugins(Array.Empty<RemotePluginManifest>());
|
||||
|
||||
// Reset here for good measure, as we're returning from a search
|
||||
this.openPluginCollapsibles.Clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue