mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
autofmt
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user