on xenial help sign in
moved shouldDisplay connection
commit1f4442966ff887668bae7a9aed56b378f32b9c44 authorNick Dedekind <nick.dedekind@canonical.com> dateTue 31 Jan 2017, 10:35 (10 years ago) parent74df526
1 file changed+4−6
qml/ApplicationMenus/MenuBar.qml+4−6
qml/ApplicationMenus/MenuBar.qml+4−6
@@ -151,12 +151,10 @@ Item {
151151 if (!visible && __popup) dismiss();
152152 }
153153
154− Component.onCompleted: {
155− shouldDisplayChanged.connect(function() {
156− if ((!shouldDisplay && d.firstInvisibleIndex == undefined) || __ownIndex <= d.firstInvisibleIndex) {
157− d.recalcFirstInvisibleIndex();
158− }
159− });
154+ onShouldDisplayChanged: {
155+ if ((!shouldDisplay && d.firstInvisibleIndex == undefined) || __ownIndex <= d.firstInvisibleIndex) {
156+ d.recalcFirstInvisibleIndex();
157+ }
160158 }
161159
162160 Connections {