mirror of
https://github.com/X1a0He/Adobe-Downloader.git
synced 2025-11-25 03:14:57 +08:00
fix: Reset Program
This commit is contained in:
@@ -48,8 +48,8 @@
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "724"
|
||||
endingLineNumber = "724"
|
||||
landmarkName = "errorDescription"
|
||||
landmarkType = "24">
|
||||
landmarkName = "alertAction()"
|
||||
landmarkType = "7">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
</Breakpoints>
|
||||
|
||||
@@ -676,13 +676,13 @@ struct CleanConfigView: View {
|
||||
|
||||
if PrivilegedHelperManager.getHelperStatus {
|
||||
PrivilegedHelperManager.shared.executeCommand("open -a Terminal \(scriptURL.path)") { output in
|
||||
if output.isEmpty {
|
||||
if output.starts(with: "Error") {
|
||||
alertMessage = "清空配置失败: \(output)"
|
||||
showAlert = true
|
||||
} else {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
||||
exit(0)
|
||||
}
|
||||
} else {
|
||||
alertMessage = "清空配置失败: \(output)"
|
||||
showAlert = true
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user