aboutsummaryrefslogtreecommitdiffstats
path: root/support/hololens/ServoApp/ServoControl/ServoControl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'support/hololens/ServoApp/ServoControl/ServoControl.cpp')
-rw-r--r--support/hololens/ServoApp/ServoControl/ServoControl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/support/hololens/ServoApp/ServoControl/ServoControl.cpp b/support/hololens/ServoApp/ServoControl/ServoControl.cpp
index 810efed02e1..4d1349ee370 100644
--- a/support/hololens/ServoApp/ServoControl/ServoControl.cpp
+++ b/support/hololens/ServoApp/ServoControl/ServoControl.cpp
@@ -564,9 +564,10 @@ void ServoControl::OnServoDevtoolsStarted(bool success,
});
}
-void ServoControl::OnServoShowContextMenu(std::vector<winrt::hstring> items) {
+void ServoControl::OnServoShowContextMenu(std::optional<hstring> title,
+ std::vector<winrt::hstring> items) {
RunOnUIThread([=] {
- MessageDialog msg{L"Menu"};
+ MessageDialog msg{title.value_or(L"Menu")};
for (auto i = 0; i < items.size(); i++) {
UICommand cmd{items[i], [=](auto) {
RunOnGLThread([=] {