on xenial help sign in
Use a binding instead of a direct assingment
commit9ec5d230767e960108d0c364ba43bf88f7cc4de7 authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 4 Feb 2016, 14:35 (11 years ago) parentb9fc8a5
1 file changed+1−1
qml/Dash/GenericScopeView.qml+1−1
qml/Dash/GenericScopeView.qml+1−1
@@ -363,6 +363,7 @@ FocusScope {
363363 clickScopeSizingHacks();
364364 if (scope && scope.id === "clickscope") {
365365 if (categoryId === "predefined" || categoryId === "local") {
366+ cardTool.artShapeSize = Qt.binding(function() { return Qt.size(units.gu(8), units.gu(7.5)) });
366367 item.artShapeStyle = "icon";
367368 } else {
368369 // Should be ubuntu store icon
@@ -381,7 +382,6 @@ FocusScope {
381382
382383 function clickScopeSizingHacks() {
383384 if (scope && scope.id === "clickscope" && (categoryId === "predefined" || categoryId === "local")) {
384− cardTool.artShapeSize = Qt.size(units.gu(8), units.gu(7.5));
385385 // Yeah, hackish :/
386386 if (scopeView.width > units.gu(45)) {
387387 if (scopeView.width >= units.gu(70)) {