Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .github/workflows/c-cpp.yml

This file was deleted.

75 changes: 0 additions & 75 deletions .github/workflows/cmake-multi-platform.yml

This file was deleted.

Empty file added .jules/bolt.md
Empty file.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License
// ============================================================================
// This is part of Windows MIDI Services and should be used
Expand All @@ -22,6 +22,7 @@ public class MidiSettingsSearchService : IMidiSettingsSearchService

private List<MidiSettingsSearchResult> AllItems = [];

private bool _needsRefresh = true;

private const string TransportGlyph = "\uE7C0";
private const string EndpointGlyph = "\uE8D6";
Expand All @@ -31,6 +32,11 @@ public class MidiSettingsSearchService : IMidiSettingsSearchService

public void Refresh()
{
if (!_needsRefresh)
{
return;
}

// build the initial search list
AllItems.Clear();

Expand Down Expand Up @@ -206,6 +212,7 @@ public void Refresh()
AllItems.Add(result);
}

_needsRefresh = false;

// maybe add all current session names

Expand All @@ -220,6 +227,10 @@ public MidiSettingsSearchService(
_endpointEnumerationService = endpointEnumerationService;
_transportInfoService = transportInfoService;
_pageService = pageService;

_endpointEnumerationService.EndpointAdded += (s, e) => _needsRefresh = true;
_endpointEnumerationService.EndpointRemoved += (s, e) => _needsRefresh = true;
_endpointEnumerationService.EndpointUpdated += (s, e) => _needsRefresh = true;
}

public IList<MidiSettingsSearchResult> GetFilteredResults(string filterText)
Expand Down