on xenial help sign in
fixes
b031589Michael Zanetti
plugins/Unity/Launcher/launchermodel.cpp+4−3
@@ -493,9 +493,10 @@ void LauncherModel::alert(const QString &appId)
493 int idx = findApplication(appId);
493 int idx = findApplication(appId);
494 if (idx >= 0) {
494 if (idx >= 0) {
495 LauncherItem *item = m_list.at(idx);
495 LauncherItem *item = m_list.at(idx);
496− if (!item->focused() && !item->alerting())
496+ if (!item->focused() && !item->alerting()) {
497− item->setAlerting(true);
497+ item->setAlerting(true);
498− Q_EMIT dataChanged(index(idx), index(idx), {RoleAlerting});
498+ Q_EMIT dataChanged(index(idx), index(idx), {RoleAlerting});
499+ }
499 }
500 }
500}
501}
501
502
qml/Launcher/LauncherDelegate.qml−4
@@ -38,10 +38,6 @@ Item {
38 readonly property real foldedHeight: Math.cos(maxAngle * Math.PI / 180) * itemHeight
38 readonly property real foldedHeight: Math.cos(maxAngle * Math.PI / 180) * itemHeight
39 readonly property alias wiggling: wiggleAnim.running
39 readonly property alias wiggling: wiggleAnim.running
40
40
41− onAlertingChanged: {
42− print("item", index, "alerting:", alerting)
43− }
44−
45 property int itemWidth
41 property int itemWidth
46 property int itemHeight
42 property int itemHeight
47 // The angle used for rotating
43 // The angle used for rotating