From ef58f002b3f43d19ed74b5a0211dbb9cc426fd43 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 26 Nov 2020 14:08:16 -0800 Subject: [PATCH] Peer Settings button goes to Message Pane if already in Settings Fixes #399 --- qml/main.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index b2c17069..6678e9b2 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -129,12 +129,18 @@ ApplicationWindow { onBack: { backFn() } onRightMenu: { + // If a group is selected.... if (gcd.selectedConversation.length == 32) { theStack.pane = theStack.groupProfilePane gcd.requestGroupSettings(gcd.selectedConversation) } else { - theStack.pane = theStack.userProfilePane - gcd.requestPeerSettings(gcd.selectedConversation) + // if a peer is selected.. + if (theStack.pane == theStack.userProfilePane) { + theStack.pane = theStack.messagePane + } else { + theStack.pane = theStack.userProfilePane + gcd.requestPeerSettings(gcd.selectedConversation) + } } } }