on xenial help sign in
improve the TODO
a016445Albert Astals
qml/Dash/GenericScopeView.qml+2−1
@@ -159,7 +159,8 @@ FocusScope {
159 scopeView.enableHeightBehaviorOnNextCreation = false;
159 scopeView.enableHeightBehaviorOnNextCreation = false;
160 }
160 }
161 if (source.toString().indexOf("Apps/RunningApplicationsGrid.qml") != -1) {
161 if (source.toString().indexOf("Apps/RunningApplicationsGrid.qml") != -1) {
162− // TODO: this is still a kludge :D
162+ // TODO: this is still a kludge :D Ideally add some kind of hook so that we
163+ // can do this from DashApps.qml or think a better way that needs no special casing
163 item.firstModel = Qt.binding(function() { return mainStageApplicationsModel })
164 item.firstModel = Qt.binding(function() { return mainStageApplicationsModel })
164 item.secondModel = Qt.binding(function() { return sideStageApplicationModel })
165 item.secondModel = Qt.binding(function() { return sideStageApplicationModel })
165 item.canEnableTerminationMode = Qt.binding(function() { return scopeView.isCurrent })
166 item.canEnableTerminationMode = Qt.binding(function() { return scopeView.isCurrent })