From d6ae56b75eb720b712c821ffdcc90ca08d2163b0 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 24 Apr 2020 14:14:31 -0400 Subject: [PATCH] Ensure correct buttons are disabled when prompting in UWP. --- support/hololens/ServoApp/ServoControl/ServoControl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/hololens/ServoApp/ServoControl/ServoControl.cpp b/support/hololens/ServoApp/ServoControl/ServoControl.cpp index 9c5869d44e9..eae5016181c 100644 --- a/support/hololens/ServoApp/ServoControl/ServoControl.cpp +++ b/support/hololens/ServoApp/ServoControl/ServoControl.cpp @@ -453,10 +453,10 @@ ServoControl::PromptSync(hstring title, hstring message, hstring primaryButton, dialog.PrimaryButtonText(primaryButton); if (secondaryButton.has_value()) { - dialog.IsPrimaryButtonEnabled(true); + dialog.IsSecondaryButtonEnabled(true); dialog.SecondaryButtonText(*secondaryButton); } else { - dialog.IsPrimaryButtonEnabled(false); + dialog.IsSecondaryButtonEnabled(false); } auto titleBlock = Controls::TextBlock();