From 0b94ad1fefb072c5e66d2972eeb111d237c2bd4a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 9 Sep 2018 11:19:33 -0700 Subject: [PATCH] Add help link in Add PC failure dialog --- app/gui/PcView.qml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/gui/PcView.qml b/app/gui/PcView.qml index 9c816457..bfdc2e82 100644 --- a/app/gui/PcView.qml +++ b/app/gui/PcView.qml @@ -57,7 +57,7 @@ GridView { function addComplete(success) { if (!success) { - errorDialog.text = "Unable to connect to the specified PC. Ensure GameStream is enabled in GeForce Experience." + errorDialog.text = "Unable to connect to the specified PC. Click the Help button for possible solutions." errorDialog.open() } } @@ -191,7 +191,12 @@ GridView { // don't allow edits to the rest of the window while open modality:Qt.WindowModal icon: StandardIcon.Critical - standardButtons: StandardButton.Ok + standardButtons: StandardButton.Ok | StandardButton.Help + onHelp: { + // Using Setup-Guide here instead of Troubleshooting because it's likely that users + // will arrive here by forgetting to enable GameStream or not forwarding ports. + Qt.openUrlExternally("https://github.com/moonlight-stream/moonlight-docs/wiki/Setup-Guide"); + } } MessageDialog {