Minor fixes

This commit is contained in:
世界 committed 2026-01-03 04:11:08 +08:00
1 parent 81d6827334
commit ef1c924c64
3 files changed
+31 -21

No files matched your search

@@ -154,10 +154,8 @@ public struct StartStopButton: View {
@available(iOS 16.0, macOS 13.0, tvOS 17.0, *)
private func checkStartupError() async {
do {
try await profile.fetchLastDisconnectError()
} catch {
alert = AlertState(title: String(localized: "Service Error"), message: error.localizedDescription)
if let alertState = await profile.checkLastDisconnectError() {
alert = alertState
}
}