From 5ab62d3aade3824ad975e5d7be215e52248e4f16 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 6 Apr 2020 09:18:20 -0500 Subject: [PATCH] Gated the database suspend and resume calls so that the Mac app will compile. --- Frameworks/Account/Account.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Frameworks/Account/Account.swift b/Frameworks/Account/Account.swift index 165bc9893..42eefa9d1 100644 --- a/Frameworks/Account/Account.swift +++ b/Frameworks/Account/Account.swift @@ -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() }