mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Gated the database suspend and resume calls so that the Mac app will compile.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user