Stop discarding Steam toasts on root defunct

This commit is contained in:
hjozwiak committed 2026-11-11 06:56:15 -05:00
1 parent 04a1070055
commit 469ed7c549
6 files changed
+54 -41

No files matched your search

+3 -3
View File
@@ -62,10 +62,10 @@ func (registry *Registry) Flush(now time.Time) []string { return registry.steam.
func (registry *Registry) Deadline() time.Time { return registry.steam.deadline() }
func (registry *Registry) Reset() { registry.steam = steamNotifications{} }
// Retire removes delayed content whose accessible root has been destroyed.
func (registry *Registry) Retire(busName, rootPath string) {
// Retire removes delayed content whose window has been destroyed.
func (registry *Registry) Retire(busName, windowPath string) {
for key, pending := range registry.steam.pending {
if key.busName == busName && (key.rootPath == rootPath || pending.windowPath == rootPath) {
if key.busName == busName && (key.rootPath == windowPath || pending.windowPath == windowPath) {
delete(registry.steam.pending, key)
}
}