Fix deprecated check error
This commit is contained in:
@@ -165,16 +165,10 @@ public struct GlobalChecksModifier: ViewModifier {
|
|||||||
let disableWarnings = await SharedPreferences.disableDeprecatedWarnings.get()
|
let disableWarnings = await SharedPreferences.disableDeprecatedWarnings.get()
|
||||||
guard !disableWarnings else { return }
|
guard !disableWarnings else { return }
|
||||||
|
|
||||||
do {
|
guard let reports = try? LibboxNewStandaloneCommandClient()!.getDeprecatedNotes() else { return }
|
||||||
let reports = try LibboxNewStandaloneCommandClient()!.getDeprecatedNotes()
|
if reports.hasNext() {
|
||||||
if reports.hasNext() {
|
|
||||||
await MainActor.run {
|
|
||||||
showNextDeprecatedNote(reports)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
await MainActor.run {
|
await MainActor.run {
|
||||||
alert = AlertState(action: "check deprecated notes", error: error)
|
showNextDeprecatedNote(reports)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,20 +182,20 @@ public struct TailscalePeerView: View {
|
|||||||
}
|
}
|
||||||
Spacer()
|
Spacer()
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
Button {
|
Button {
|
||||||
copyToClipboard(address)
|
copyToClipboard(address)
|
||||||
} label: {
|
} label: {
|
||||||
if copiedAddress == address {
|
if copiedAddress == address {
|
||||||
Image(systemName: "checkmark")
|
Image(systemName: "checkmark")
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
} else {
|
} else {
|
||||||
Image(systemName: "doc.on.doc")
|
Image(systemName: "doc.on.doc")
|
||||||
.foregroundStyle(.blue)
|
.foregroundStyle(.blue)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
#if os(macOS)
|
||||||
#if os(macOS)
|
.buttonStyle(.plain)
|
||||||
.buttonStyle(.plain)
|
#endif
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user