mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-12 00:07:24 -06:00
Don't allow orphaned profiles to show up in the Default list (#18207)
This commit is contained in:
parent
84d6b0fba0
commit
a607029f07
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user