From 79435b60ff5b6e9fa5a70c1a32b904876c8069e3 Mon Sep 17 00:00:00 2001 From: "R. Aidan Campbell" Date: Thu, 5 Jul 2018 20:49:10 -0700 Subject: [PATCH] Now with notification dialog for attempts to pair while busy --- app/gui/PcView.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/gui/PcView.qml b/app/gui/PcView.qml index 8f447584..a9e08e6e 100644 --- a/app/gui/PcView.qml +++ b/app/gui/PcView.qml @@ -100,7 +100,8 @@ GridView { pairDialog.open() } else { - // TODO: error dialog + // cannot pair while something is streaming or attempting to pair + pairingFailedDialog.open() } } } @@ -111,6 +112,15 @@ GridView { } } + MessageDialog { + id: pairingFailedDialog + // don't allow edits to the rest of the window while open + modality:Qt.WindowModal + + text:"This PC is busy: make sure no game is streaming, and try again" + standardButtons: Dialog.OK + } + MessageDialog { id: pairDialog // don't allow edits to the rest of the window while open