From 42e87ed3e342eb1bef3d10bf752ad935e358b6d4 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Fri, 24 May 2019 16:27:45 -0500 Subject: [PATCH] fix build break from using `await` instead of `co_await` (#1009) --- src/cascadia/TerminalApp/App.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cascadia/TerminalApp/App.cpp b/src/cascadia/TerminalApp/App.cpp index 354696302..89d9f51c5 100644 --- a/src/cascadia/TerminalApp/App.cpp +++ b/src/cascadia/TerminalApp/App.cpp @@ -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(profileIndex + static_cast(ShortcutAction::NewTabProfile0))); - + // make sure we find one to display if (profileKeyChord) { _SetAcceleratorForMenuItem(profileMenuItem, profileKeyChord); - } + } } auto profileName = profile.GetName();