on xenial help sign in
single line elses
commitfee59e9c7371f44ab47f6a95a2c6951c608d44df authorNick Dedekind <nicholas.dedekind@gmail.com> dateWed 3 Jul 2013, 16:00 (13 years ago) parent25fae73
2 files changed+3−6
Panel/Indicators.qml+2−4 tests/qmltests/Panel/tst_Indicators.qml+1−2
Panel/Indicators.qml+2−4
@@ -53,8 +53,7 @@ Showable {
5353 // we dont want to switch to a indicator menu until we hit reveal state.
5454 if (menuContent.overviewActive) {
5555 menuContent.showOverview()
56− }
57− else {
56+ } else {
5857 menuContent.showMenu()
5958 }
6059 indicators.state = "locked"
@@ -243,8 +242,7 @@ Showable {
243242 if (showAnimation.running) {
244243 if (indicators.state == "initial") {
245244 openOverview()
246− }
247− else {
245+ } else {
248246 indicators.calculateCurrentItem(revealer.lateralPosition, false)
249247 menuContent.showMenu()
250248 }
tests/qmltests/Panel/tst_Indicators.qml+1−2
@@ -85,8 +85,7 @@ Item {
8585 if (!indicators.shown) {
8686 indicators.openOverview();
8787 indicators.show();
88− }
89− else {
88+ } else {
9089 indicators.hide();
9190 }
9291 }