From 13b9a2a67b573759ee1e824bb70d3a640656b798 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Tue, 9 Mar 2021 15:24:58 +1300 Subject: [PATCH] Disable wearables buttons in avatar app if don't have permissions --- interface/resources/qml/hifi/AvatarApp.qml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/interface/resources/qml/hifi/AvatarApp.qml b/interface/resources/qml/hifi/AvatarApp.qml index cfc1121af9..2c8d62a598 100644 --- a/interface/resources/qml/hifi/AvatarApp.qml +++ b/interface/resources/qml/hifi/AvatarApp.qml @@ -518,7 +518,12 @@ Rectangle { glyphText: "\ue02e" onClicked: { - adjustWearables.open(currentAvatar); + if (!AddressManager.isConnected || Entities.canRezAvatarEntities()) { + adjustWearables.open(currentAvatar); + } else { + Window.alert("You cannot use wearables on this domain.") + } + } } @@ -529,7 +534,11 @@ Rectangle { glyphText: wearablesFrozen ? hifi.glyphs.lock : hifi.glyphs.unlock; onClicked: { - emitSendToScript({'method' : 'toggleWearablesFrozen'}); + if (!AddressManager.isConnected || Entities.canRezAvatarEntities()) { + emitSendToScript({'method' : 'toggleWearablesFrozen'}); + } else { + Window.alert("You cannot use wearables on this domain.") + } } } }