on xenial help sign in
Move this code up to Dash.qml too
commitfb554b33ce63c91ef99f66e41d409cc5bb263225 authorAlbert Astals <albert.astals@canonical.com> dateFri 11 Jul 2014, 15:12 (12 years ago) parentc2a4223
2 files changed+9−7
qml/Dash/Dash.qml+5 qml/Dash/DashContent.qml+4−7
qml/Dash/Dash.qml+5
@@ -62,6 +62,11 @@ Showable {
6262 id: filteredScopes
6363 model: Scopes {
6464 id: scopes
65+ onLoadedChanged: {
66+ if (loaded) {
67+ scopesOverview.scope = scopes.getScope("scopesOverview");
68+ }
69+ }
6570 }
6671 dynamicSortFilter: true
6772
qml/Dash/DashContent.qml+4−7
@@ -38,12 +38,9 @@ Item {
3838 Connections {
3939 target: scopes
4040 onLoadedChanged: {
41− if (scopes.loaded) {
42− if (set_current_index != undefined) {
43− setCurrentScopeAtIndex(set_current_index[0], set_current_index[1], set_current_index[2]);
44− set_current_index = undefined;
45− }
46− scopesOverview.scope = scopes.getScope("scopesOverview");
41+ if (scopes.loaded && set_current_index != undefined) {
42+ setCurrentScopeAtIndex(set_current_index[0], set_current_index[1], set_current_index[2]);
43+ set_current_index = undefined;
4744 }
4845 }
4946 }
@@ -114,7 +111,7 @@ Item {
114111 // TODO Investigate if we can switch to a smaller cache buffer when/if UbuntuShape gets more performant
115112 cacheBuffer: 1073741823
116113 onMovementStarted: currentItem.item.showHeader();
117− clip: parent.x != 0 || parent.scale != 1
114+ clip: parent.x != 0
118115
119116 // If the number of items is less than the current index, then need to reset to another item.
120117 onCountChanged: {