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. // from menus, but still work as the startup profile for instance.
for (const auto& profile : allProfiles) for (const auto& profile : allProfiles)
{ {
if (!profile.Deleted()) if (!profile.Deleted() && !profile.Orphaned())
{ {
profiles.emplace_back(profile); profiles.emplace_back(profile);
} }