Skip to content

Commit

Permalink
spell check
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-zamora committed Jan 28, 2021
1 parent 19fe2be commit 74a53f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cascadia/TerminalSettingsEditor/SettingContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
{
if (auto child{ GetTemplateChild(L"ResetButton") })
{
if (auto btn{ child.try_as<Controls::Button>() })
if (auto button{ child.try_as<Controls::Button>() })
{
// Apply click handler for the reset button.
// When clicked, we dispatch the bound ClearSettingValue event,
// resulting in inheriting the setting value from the parent.
btn.Click([weakThis{ get_weak() }](auto&&, auto&&) {
button.Click([weakThis{ get_weak() }](auto&&, auto&&) {
if (auto container{ weakThis.get() })
{
container->_ClearSettingValueHandlers(*container, nullptr);
Expand All @@ -77,7 +77,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
Automation::AutomationProperties::SetName(child, helpText);

// initialize visibility for reset button
btn.Visibility(HasSettingValue() ? Visibility::Visible : Visibility::Collapsed);
button.Visibility(HasSettingValue() ? Visibility::Visible : Visibility::Collapsed);
}
}

Expand Down

1 comment on commit 74a53f8

@github-actions

This comment was marked as resolved.

Please sign in to comment.