[Notifications] Avoid showing "0 seconds remaining"

It's a little awkward imho.
wilder-5.24
Kai Uwe Broulik 5 years ago
parent c4ece0fc0f
commit 11b23fba8e
  1. 4
      applets/notifications/package/contents/ui/NotificationHeader.qml

@ -154,8 +154,8 @@ RowLayout {
return "";
}
var eta = remaining / details.speed;
if (!eta) {
var eta = remaining / speed;
if (eta < 0.5) { // Avoid showing "0 seconds remaining"
return "";
}

Loading…
Cancel
Save