Say when there's no notification history to replay
Replaying an empty history did nothing at all on screen, which reads as a dead keybinding rather than an empty log. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
5952c016a6
commit
e43ddf0eaa
@@ -331,7 +331,23 @@ Item {
|
|||||||
service.historyReplayLimit,
|
service.historyReplayLimit,
|
||||||
NotificationUrgency.Normal)
|
NotificationUrgency.Normal)
|
||||||
|
|
||||||
if (rows.length === 0) return "none"
|
// Replaying nothing at all looks like a dead keybinding, so say so.
|
||||||
|
if (rows.length === 0) {
|
||||||
|
popupModel.insert(0, {
|
||||||
|
id: -1,
|
||||||
|
originalId: -1,
|
||||||
|
app: "omarchy-action",
|
||||||
|
appIcon: "",
|
||||||
|
summary: "No recent notifications",
|
||||||
|
body: "",
|
||||||
|
image: "",
|
||||||
|
glyph: "",
|
||||||
|
urgency: NotificationUrgency.Low,
|
||||||
|
expireTimeout: 0,
|
||||||
|
timestamp: Date.now()
|
||||||
|
})
|
||||||
|
return "none"
|
||||||
|
}
|
||||||
|
|
||||||
clearPopups()
|
clearPopups()
|
||||||
for (var i = 0; i < rows.length; i++) {
|
for (var i = 0; i < rows.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user