mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 13:57:43 +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>
|
/// <param name="plugins">List of plugins whose categories should be highlighted.</param>
|
||||||
public void SetCategoryHighlightsForPlugins(IEnumerable<PluginManifest> plugins)
|
public void SetCategoryHighlightsForPlugins(IEnumerable<PluginManifest> plugins)
|
||||||
{
|
{
|
||||||
|
ArgumentNullException.ThrowIfNull(plugins);
|
||||||
|
|
||||||
this.highlightedCategoryKinds.Clear();
|
this.highlightedCategoryKinds.Clear();
|
||||||
|
|
||||||
foreach (var entry in plugins)
|
foreach (var entry in plugins)
|
||||||
|
|
|
||||||
|
|
@ -3573,7 +3573,7 @@ internal class PluginInstallerWindow : Window, IDisposable
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(this.searchText))
|
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
|
// Reset here for good measure, as we're returning from a search
|
||||||
this.openPluginCollapsibles.Clear();
|
this.openPluginCollapsibles.Clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue