on xenial help sign in
fixes
commitb03158953aa7a6db9d617e206b22855fbe7410a0 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 13 May 2016, 13:31 (10 years ago) parenta2669eb
2 files changed+4−7
plugins/Unity/Launcher/launchermodel.cpp+4−3 qml/Launcher/LauncherDelegate.qml−4
plugins/Unity/Launcher/launchermodel.cpp+4−3
@@ -493,9 +493,10 @@ void LauncherModel::alert(const QString &appId)
493493 int idx = findApplication(appId);
494494 if (idx >= 0) {
495495 LauncherItem *item = m_list.at(idx);
496− if (!item->focused() && !item->alerting())
497− item->setAlerting(true);
498− Q_EMIT dataChanged(index(idx), index(idx), {RoleAlerting});
496+ if (!item->focused() && !item->alerting()) {
497+ item->setAlerting(true);
498+ Q_EMIT dataChanged(index(idx), index(idx), {RoleAlerting});
499+ }
499500 }
500501}
501502
qml/Launcher/LauncherDelegate.qml−4
@@ -38,10 +38,6 @@ Item {
3838 readonly property real foldedHeight: Math.cos(maxAngle * Math.PI / 180) * itemHeight
3939 readonly property alias wiggling: wiggleAnim.running
4040
41− onAlertingChanged: {
42− print("item", index, "alerting:", alerting)
43− }
44−
4541 property int itemWidth
4642 property int itemHeight
4743 // The angle used for rotating