Minor fixes

This commit is contained in:
世界
2026-01-03 04:11:08 +08:00
parent 81d6827334
commit ef1c924c64
3 changed files with 31 additions and 21 deletions
@@ -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
}
}