Minor fixes

This commit is contained in:
世界 committed 2024-09-17 18:49:49 +08:00
1 parent 479bd593af
commit 8b5ad1928f
7 files changed
+86 -33

No files matched your search

@@ -132,8 +132,16 @@ public struct SettingView: View {
Text("Loading...")
.onAppear {
Task.detached {
taiwanFlagAvailable = !DeviceCensorship.isChinaDevice()
isLoading = false
let available: Bool
if ApplicationLibrary.inPreview {
available = true
} else {
available = !DeviceCensorship.isChinaDevice()
}
await MainActor.run {
taiwanFlagAvailable = available
isLoading = false
}
}
}
} else {