mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-12 18:41:01 -06:00
Revert "Manually set the automation name of the default color scheme for screen reader (#14704)"
This reverts commit 47f38e31a1f3420766543bfbbe80a5afc546c32f.
This commit is contained in:
parent
a0e830cc1a
commit
7d0baa7946
@ -42,16 +42,6 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
|
|||||||
// Only let this succeed once.
|
// Only let this succeed once.
|
||||||
_layoutUpdatedRevoker.revoke();
|
_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);
|
ColorSchemeListView().Focus(FocusState::Programmatic);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user