mirror of
https://github.com/nimbold/Firelink.git
synced 2026-09-04 15:05:22 +00:00
fix(ui): clear add downloads view state on disappear to prevent old link auto-pasting
This commit is contained in:
@@ -84,6 +84,16 @@ struct AddDownloadsView: View {
|
|||||||
}
|
}
|
||||||
.onDisappear {
|
.onDisappear {
|
||||||
metadataTask?.cancel()
|
metadataTask?.cancel()
|
||||||
|
linkText = ""
|
||||||
|
pendingDownloads = []
|
||||||
|
headerText = ""
|
||||||
|
cookieText = ""
|
||||||
|
mirrorText = ""
|
||||||
|
useAuthorization = false
|
||||||
|
authUsername = ""
|
||||||
|
authPassword = ""
|
||||||
|
checksumEnabled = false
|
||||||
|
checksumValue = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user