Skip to content

Commit

Permalink
Revert "Manually set the automation name of the default color scheme …
Browse files Browse the repository at this point in the history
…for screen reader (#14704)"

This reverts commit 47f38e3.
  • Loading branch information
DHowett committed Jan 24, 2023
1 parent a0e830c commit 7d0baa7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/cascadia/TerminalSettingsEditor/ColorSchemes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
// Only let this succeed once.
_layoutUpdatedRevoker.revoke();

for (const auto scheme : _ViewModel.AllColorSchemes())
{
if (scheme.IsDefaultScheme())
{
winrt::hstring newName{ fmt::format(L"{} ({})", scheme.Name(), RS_(L"ColorScheme_DefaultTag/Text")) };
Automation::AutomationProperties::SetName(ColorSchemeListView().ContainerFromItem(scheme), newName);
break;
}
}

ColorSchemeListView().Focus(FocusState::Programmatic);
});
}
Expand Down

0 comments on commit 7d0baa7

Please sign in to comment.