fix(ui): clear add downloads view state on disappear to prevent old link auto-pasting

This commit is contained in:
nimbold
2026-06-08 21:17:21 +03:30
parent ef0ad42df3
commit 9261385d59
+10
View File
@@ -84,6 +84,16 @@ struct AddDownloadsView: View {
}
.onDisappear {
metadataTask?.cancel()
linkText = ""
pendingDownloads = []
headerText = ""
cookieText = ""
mirrorText = ""
useAuthorization = false
authUsername = ""
authPassword = ""
checksumEnabled = false
checksumValue = ""
}
}