Refactor command client

This commit is contained in:
世界 committed 2023-08-15 17:20:44 +08:00
1 parent 1ac5df7f72
commit dbd8700145
20 files changed
+378 -572

No files matched your search

@@ -73,10 +73,8 @@ public struct ServiceLogView: View {
if content.isEmpty {
do {
content = try String(contentsOf: FilePath.cacheDirectory.appendingPathComponent("stderr.log.old"))
} catch {
}
} catch {}
}
isLoading = false
}
@@ -85,6 +83,7 @@ public struct ServiceLogView: View {
try? FileManager.default.removeItem(at: FilePath.cacheDirectory.appendingPathComponent("stderr.log.old"))
DispatchQueue.main.async {
dismiss()
isLoading = true
}
}