Don't allow orphaned profiles to show up in the Default list (#18207)

This commit is contained in:
Dustin L. Howett 2024-11-19 16:52:35 -06:00 committed by GitHub
parent 84d6b0fba0
commit a607029f07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
// from menus, but still work as the startup profile for instance.
for (const auto& profile : allProfiles)
{
if (!profile.Deleted())
if (!profile.Deleted() && !profile.Orphaned())
{
profiles.emplace_back(profile);
}

View File

@ -84,7 +84,7 @@ namespace Microsoft.Terminal.Settings.Editor
void CreateUnfocusedAppearance();
void DeleteUnfocusedAppearance();
Boolean Orphaned { get; };
Boolean Orphaned { get; };
OBSERVABLE_PROJECTED_PROFILE_SETTING(String, Name);
PERMANENT_OBSERVABLE_PROJECTED_SETTING(Guid, Guid);
OBSERVABLE_PROJECTED_PROFILE_SETTING(String, Source);