@@ -55,21 +55,21 @@ StyledItem {
5555 name: "Ubuntu.Components.Themes.Ambiance"
5656 }
5757
58− state: {
59− var result = "";
58+ readonly property bool expanded: {
59+ var result = false;
6060
6161 if (type === Notification.SnapDecision) {
6262 if (ListView.view.currentIndex === index) {
63− result = "expanded";
63+ result = true;
6464 } else {
6565 if (ListView.view.count > 2) {
6666 if (ListView.view.currentIndex === -1 && index == 1) {
67− result = "expanded";
67+ result = true;
6868 } else {
69− result = "contracted";
69+ result = false;
7070 }
7171 } else {
72− result = "expanded";
72+ result = true;
7373 }
7474 }
7575 }
@@ -325,12 +325,12 @@ StyledItem {
325325 }
326326
327327 ListItem.ThinDivider {
328− visible: type === Notification.SnapDecision && notification.state !== "contracted"
328+ visible: type === Notification.SnapDecision && notification.expanded
329329 }
330330
331331 Icon {
332332 source: "arrow-down.png"
333− visible: type === Notification.SnapDecision && notification.state === "contracted"
333+ visible: type === Notification.SnapDecision && !notification.expanded
334334 width: units.gu(2)
335335 height: units.gu(0.6)
336336 anchors.horizontalCenter: parent.horizontalCenter
@@ -428,7 +428,7 @@ StyledItem {
428428
429429 spacing: notification.margins
430430
431− visible: notification.type === Notification.SnapDecision && oneOverTwoRepeaterTop.count === 3 && notification.state === "expanded"
431+ visible: notification.type === Notification.SnapDecision && oneOverTwoRepeaterTop.count === 3 && notification.expanded
432432
433433 Repeater {
434434 id: oneOverTwoRepeaterTop
@@ -497,7 +497,7 @@ StyledItem {
497497 left: parent.left
498498 right: parent.right
499499 }
500− visible: notification.type === Notification.SnapDecision && actionRepeater.count > 0 && !oneOverTwoCase.visible && notification.state === "expanded"
500+ visible: notification.type === Notification.SnapDecision && actionRepeater.count > 0 && !oneOverTwoCase.visible && notification.expanded
501501 spacing: notification.margins
502502 layoutDirection: Qt.RightToLeft
503503
@@ -567,7 +567,7 @@ StyledItem {
567567 right: parent.right
568568 }
569569
570− visible: notification.type === Notification.SnapDecision && actionRepeater.count > 3 && !oneOverTwoCase.visible && notification.state === "expanded"
570+ visible: notification.type === Notification.SnapDecision && actionRepeater.count > 3 && !oneOverTwoCase.visible && notification.expanded
571571 model: notification.actions
572572 expanded: false
573573 startIndex: 2