From 1669095fb19b8cc43cfb88eeb481df541cbfa0c2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 4 Nov 2019 19:30:38 -0800 Subject: [PATCH] Prevent double-clicks from triggering pairing twice. Fixes #286 --- app/gui/PcView.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/gui/PcView.qml b/app/gui/PcView.qml index e743ea2c..ba6ec3f7 100644 --- a/app/gui/PcView.qml +++ b/app/gui/PcView.qml @@ -235,6 +235,12 @@ CenteredGridView { NavigableMessageDialog { id: pairDialog + + // Pairing dialog must be modal to prevent double-clicks from triggering + // pairing twice + modal: true + closePolicy: Popup.CloseOnEscape + // don't allow edits to the rest of the window while open property string pin : "0000" text:"Please enter " + pin + " on your GameStream PC. This dialog will close when pairing is completed."