From 95406c44c687f4afd1c74d5557fdee99d4e92fa7 Mon Sep 17 00:00:00 2001 From: ksuprynowicz Date: Sun, 14 Apr 2024 21:56:41 +0200 Subject: [PATCH] Simplified ScriptSecurity.qml --- .../qml/hifi/dialogs/security/ScriptSecurity.qml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/interface/resources/qml/hifi/dialogs/security/ScriptSecurity.qml b/interface/resources/qml/hifi/dialogs/security/ScriptSecurity.qml index fa8f02d6df..de7304b6fb 100644 --- a/interface/resources/qml/hifi/dialogs/security/ScriptSecurity.qml +++ b/interface/resources/qml/hifi/dialogs/security/ScriptSecurity.qml @@ -43,10 +43,6 @@ Rectangle { console.info("Setting Protect Avatar URLs to:", enabled); } - function initCheckbox() { - whitelistEnabled.checked = Settings.getValue("private/scriptPermissionGetAvatarURLEnable", true); - } - anchors.fill: parent width: parent.width; height: 120; @@ -69,12 +65,10 @@ Rectangle { height: 60; CheckBox { - Component.onCompleted: { - initCheckbox(); - } - id: whitelistEnabled; + checked: Settings.getValue("private/scriptPermissionGetAvatarURLEnable", true); + anchors.right: parent.right; anchors.top: parent.top; anchors.topMargin: 10;