on xenial help sign in
Only show buttons when actions are available
7f8d291Nick Dedekind
Notifications/Notification.qml+1−1
@@ -193,7 +193,7 @@ UbuntuShape {
193 left: parent.left
193 left: parent.left
194 right: parent.right
194 right: parent.right
195 }
195 }
196− visible: notification.type == Notification.SnapDecision
196+ visible: notification.type == Notification.SnapDecision && actionRepeater.count > 0
197 height: units.gu(5)
197 height: units.gu(5)
198
198
199 property real buttonWidth: (width - contentColumn.spacing) / 2
199 property real buttonWidth: (width - contentColumn.spacing) / 2