Compare commits
No commits in common. "1c67f002f42439fffd22c928ccfdd8ce1197ff7e" and "51a6323b6662b0ae8826fa91c38efb2205086f9a" have entirely different histories.
1c67f002f4
...
51a6323b66
2 changed files with 2 additions and 12 deletions
|
|
@ -11,7 +11,6 @@ Item {
|
|||
required property var notif // NotifItem (may be null — all accesses use ?.)
|
||||
|
||||
property bool showAppName: true
|
||||
property bool dismissOnAction: true
|
||||
property int iconSize: 32
|
||||
property int bodyMaxLines: 3
|
||||
property color accentColor: M.Theme.base0D
|
||||
|
|
@ -25,12 +24,6 @@ Item {
|
|||
id: _hover
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onTapped: root.dismissRequested()
|
||||
}
|
||||
|
||||
// Background: base01, base02 on hover
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
|
|
@ -145,7 +138,6 @@ Item {
|
|||
const def = root.notif?.actions?.find(a => a.identifier === "default");
|
||||
if (def) {
|
||||
def.invoke();
|
||||
if (root.dismissOnAction)
|
||||
root.dismissRequested();
|
||||
}
|
||||
}
|
||||
|
|
@ -265,8 +257,7 @@ Item {
|
|||
cursorShape: Qt.PointingHandCursor
|
||||
onTapped: {
|
||||
parent.modelData.invoke();
|
||||
if (root.dismissOnAction)
|
||||
root.dismissRequested();
|
||||
M.NotifService.dismiss(root.notif.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -418,7 +418,6 @@ M.HoverPanel {
|
|||
anchors.leftMargin: 8
|
||||
notif: notifDelegate._notif
|
||||
showAppName: false
|
||||
dismissOnAction: false
|
||||
iconSize: 24
|
||||
bodyMaxLines: 2
|
||||
onDismissRequested: notifDelegate.dismiss()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue