forked from Shinonome/dots-hyprland
fix "+0 notifications"
This commit is contained in:
@@ -44,7 +44,7 @@ MouseArea {
|
|||||||
width: ListView.view.width
|
width: ListView.view.width
|
||||||
notification: modelData
|
notification: modelData
|
||||||
groupExpandControlMessage: {
|
groupExpandControlMessage: {
|
||||||
if (root.notifications.length === 0) return "";
|
if (root.notifications.length <= 1) return "";
|
||||||
if (!root.expanded) return Translation.tr("+%1 notifications").arg(root.notifications.length - 1);
|
if (!root.expanded) return Translation.tr("+%1 notifications").arg(root.notifications.length - 1);
|
||||||
if (index === root.notifications.length - 1) return Translation.tr("See fewer");
|
if (index === root.notifications.length - 1) return Translation.tr("See fewer");
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
Reference in New Issue
Block a user