From 34243f423952549d4d703ac4497d5678a0ee8405 Mon Sep 17 00:00:00 2001 From: humbletim Date: Fri, 8 Dec 2017 17:10:57 -0500 Subject: [PATCH 1/2] disable connections console.log to prevent UI lag --- interface/resources/qml/hifi/Pal.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/resources/qml/hifi/Pal.qml b/interface/resources/qml/hifi/Pal.qml index efcf6ccfcf..b46d238908 100644 --- a/interface/resources/qml/hifi/Pal.qml +++ b/interface/resources/qml/hifi/Pal.qml @@ -26,6 +26,7 @@ Rectangle { // Style color: "#E3E3E3"; // Properties + property bool debug: false property int myCardWidth: width - upperRightInfoContainer.width; property int myCardHeight: 80; property int rowHeight: 60; @@ -1120,7 +1121,9 @@ Rectangle { break; case 'connections': var data = message.params; - console.log('Got connection data: ', JSON.stringify(data)); + if (pal.debug) { + console.log('Got connection data: ', JSON.stringify(data)); + } connectionsUserModelData = data; sortConnectionsModel(); connectionsLoading.visible = false; From abba85ac5427d4daf429f3a5d9b052e2688fed2a Mon Sep 17 00:00:00 2001 From: humbletim Date: Fri, 8 Dec 2017 18:14:30 -0500 Subject: [PATCH 2/2] add missing colonsemi --- interface/resources/qml/hifi/Pal.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/resources/qml/hifi/Pal.qml b/interface/resources/qml/hifi/Pal.qml index b46d238908..64f61f0d69 100644 --- a/interface/resources/qml/hifi/Pal.qml +++ b/interface/resources/qml/hifi/Pal.qml @@ -26,7 +26,7 @@ Rectangle { // Style color: "#E3E3E3"; // Properties - property bool debug: false + property bool debug: false; property int myCardWidth: width - upperRightInfoContainer.width; property int myCardHeight: 80; property int rowHeight: 60;