From 726395ac3eaef6983e2e76aea8ae3d5b5a388fe8 Mon Sep 17 00:00:00 2001 From: David Kelly Date: Thu, 6 Apr 2017 14:07:07 -0700 Subject: [PATCH] friends checkbox speedup --- interface/resources/qml/hifi/Pal.qml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/interface/resources/qml/hifi/Pal.qml b/interface/resources/qml/hifi/Pal.qml index 50fba660d8..5c8c5cd2b4 100644 --- a/interface/resources/qml/hifi/Pal.qml +++ b/interface/resources/qml/hifi/Pal.qml @@ -840,11 +840,7 @@ Rectangle { pal.sendToScript({method: newValue ? 'addFriend' : 'removeFriend', params: model.userName}); UserActivityLogger["palAction"](newValue ? styleData.role : "un-" + styleData.role, model.sessionId); - - // http://doc.qt.io/qt-5/qtqml-syntax-propertybinding.html#creating-property-bindings-from-javascript - // I'm using an explicit binding here because clicking a checkbox breaks the implicit binding as set by - // "checked:" statement above. - checked = Qt.binding(function() { return (model["connection"] === "friend" ? true : false)}); + checked = newValue; } } }