diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index 0f247cfc9..5f29aa243 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -306,17 +306,18 @@ Variants { onClicked: { if (mouse.button === Qt.RightButton) { animateOut(); - } - else if (mouse.button === Qt.LeftButton) { + } else if (mouse.button === Qt.LeftButton) { var actions = model.actionsJson ? JSON.parse(model.actionsJson) : []; - var hasDefault = actions.some(function(a) { return a.identifier === "default" }); - if (hasDefault) { + var hasDefault = actions.some(function (a) { + return a.identifier === "default"; + }); + if (hasDefault) { NotificationService.invokeAction(notificationId, "default"); - animateOut(); - } + animateOut(); + } } } - } + } // Animation setup function triggerEntryAnimation() { animInDelayTimer.stop();