Gated the database suspend and resume calls so that the Mac app will compile.
This commit is contained in:
parent
f0ec7c5e19
commit
5ab62d3aad
|
@ -411,14 +411,18 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
|||
}
|
||||
|
||||
public func suspendDatabase() {
|
||||
#if os(iOS)
|
||||
database.cancelAndSuspend()
|
||||
#endif
|
||||
save()
|
||||
}
|
||||
|
||||
/// Re-open the SQLite database and allow database calls.
|
||||
/// Call this *before* calling resume.
|
||||
public func resumeDatabaseAndDelegate() {
|
||||
#if os(iOS)
|
||||
database.resume()
|
||||
#endif
|
||||
delegate.resume()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue