Keep stale tab cleanup from discarding fresh Files/Changes loads
This commit is contained in:
@@ -138,11 +138,6 @@ final class ChangesModel {
|
||||
}
|
||||
}
|
||||
|
||||
func stop() {
|
||||
target += 1
|
||||
timer?.cancel()
|
||||
}
|
||||
|
||||
func transcript(_ fresh: [ByreEvent]) {
|
||||
if pinned != nil {
|
||||
return
|
||||
@@ -234,7 +229,6 @@ struct ChangesView: View {
|
||||
}
|
||||
await untilCancelled()
|
||||
off?()
|
||||
m.stop()
|
||||
}
|
||||
.onChange(of: store.pinned) {
|
||||
model?.retarget()
|
||||
|
||||
@@ -113,11 +113,6 @@ private final class FilesModel {
|
||||
}
|
||||
}
|
||||
|
||||
func stop() {
|
||||
target += 1
|
||||
timer?.cancel()
|
||||
}
|
||||
|
||||
func load() async {
|
||||
guard let taskId = store.selectedTaskId else {
|
||||
return
|
||||
@@ -206,7 +201,6 @@ struct FilesView: View {
|
||||
}
|
||||
await untilCancelled()
|
||||
off?()
|
||||
m.stop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +136,6 @@ struct WorkflowView: View {
|
||||
}
|
||||
await untilCancelled()
|
||||
off()
|
||||
target += 1
|
||||
}
|
||||
.onChange(of: task?.workflow) {
|
||||
if run == nil && !loading && error.isEmpty {
|
||||
|
||||
Reference in New Issue
Block a user