fix build break from using await instead of co_await (#1009)

This commit is contained in:
Mike Griese 2019-05-24 16:27:45 -05:00 committed by msftbot[bot]
parent 40b557a4b6
commit 42e87ed3e3

View file

@ -211,7 +211,7 @@ namespace winrt::TerminalApp::implementation
_root.Children().Append(dialog);
// Display the dialog.
Controls::ContentDialogResult result = await dialog.ShowAsync(Controls::ContentDialogPlacement::Popup);
Controls::ContentDialogResult result = co_await dialog.ShowAsync(Controls::ContentDialogPlacement::Popup);
// After the dialog is dismissed, the dialog lock (held by `lock`) will
// be released so another can be shown.
@ -295,12 +295,12 @@ namespace winrt::TerminalApp::implementation
{
// enum value for ShortcutAction::NewTabProfileX; 0==NewTabProfile0
auto profileKeyChord = keyBindings.GetKeyBinding(static_cast<ShortcutAction>(profileIndex + static_cast<int>(ShortcutAction::NewTabProfile0)));
// make sure we find one to display
if (profileKeyChord)
{
_SetAcceleratorForMenuItem(profileMenuItem, profileKeyChord);
}
}
}
auto profileName = profile.GetName();