on xenial help sign in
fix hideChildren bug on drag
b06ae08Albert Astals
qml/Dash/ScopesListCategoryItem.qml+2−1
@@ -91,12 +91,13 @@ MouseArea {
91 onClicked: if (!editMode) root.requestFavorite(model.scopeId, !isFavorite);
91 onClicked: if (!editMode) root.requestFavorite(model.scopeId, !isFavorite);
92 onPressed: if (editMode) root.handlePressed(starArea);
92 onPressed: if (editMode) root.handlePressed(starArea);
93 onReleased: if (editMode) root.handleReleased(starArea);
93 onReleased: if (editMode) root.handleReleased(starArea);
94− visible: !hideChildren && (editMode || showStar)
94+ visible: editMode || showStar
95 Icon {
95 Icon {
96 id: star
96 id: star
97 anchors.centerIn: parent
97 anchors.centerIn: parent
98 height: units.gu(2)
98 height: units.gu(2)
99 width: units.gu(2)
99 width: units.gu(2)
100+ visible: !hideChildren
100 // TODO is view-grid-symbolic what we really want here? Looks good but seems semantically wrong
101 // TODO is view-grid-symbolic what we really want here? Looks good but seems semantically wrong
101 source: editMode ? "image://theme/view-grid-symbolic" : isFavorite ? "image://theme/starred" : "image://theme/non-starred"
102 source: editMode ? "image://theme/view-grid-symbolic" : isFavorite ? "image://theme/starred" : "image://theme/non-starred"
102 }
103 }