Merge pull request #10150 from davidkelly/dk/3930

friends checkbox speedup
This commit is contained in:
Howard Stearns 2017-04-07 09:27:39 -07:00 committed by GitHub
commit 468cc7f19b

View file

@ -849,11 +849,6 @@ 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)});
}
}
}