Skip to content

Commit 19dfcbc

Browse files
18202781743yixinshark
authored andcommitted
fix: action can't work
as title.
1 parent f996c8d commit 19dfcbc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

panels/notification/bubble/package/NormalBubble.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ NotifyItemContent {
3434
MouseArea {
3535
anchors.fill: parent
3636
hoverEnabled: true
37+
z: -1 // default action
3738
onClicked: {
3839
if (!bubble.defaultAction)
3940
return

panels/notification/center/notifyitem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ void AppNotifyItem::updateActions()
120120
const auto index = actions.indexOf(QLatin1String("default"));
121121
if (index >= 0) {
122122
// default Action maybe have text.
123+
m_defaultAction = QLatin1String("default");
123124
if (actions.size() % 2 == 1) {
124125
actions.remove(index);
125126
} else {

0 commit comments

Comments
 (0)