mirror of
https://github.com/TermiT/Flycut.git
synced 2025-02-20 22:13:14 +08:00
Fix main thread bug
This commit is contained in:
parent
0129887c5f
commit
6a1539bb3d
1 changed files with 3 additions and 2 deletions
|
@ -445,8 +445,9 @@ class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSour
|
|||
}
|
||||
|
||||
func notifyCKAccountStatusNoAccount() {
|
||||
if ( !self.ignoreCKAccountStatusNoAccount )
|
||||
{
|
||||
DispatchQueue.main.async {
|
||||
guard !self.ignoreCKAccountStatusNoAccount else { return }
|
||||
|
||||
let alert = UIAlertController(title: "No iCloud Account", message: "An iCloud account with iCloud Drive enabled is required for iCloud sync.", preferredStyle: .alert)
|
||||
alert.addAction(UIAlertAction(title: "Preferences", style: .default, handler: { (_) in
|
||||
if #available(iOS 10.0, *)
|
||||
|
|
Loading…
Reference in a new issue