|
@@ -175,7 +175,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
|
|
|
func applicationWillTerminate(_: UIApplication) {
|
|
|
logger.info("⬅️ applicationWillTerminate")
|
|
|
- closeDatabase()
|
|
|
+ dcAccounts.closeDatabase()
|
|
|
reachability.stopNotifier()
|
|
|
}
|
|
|
|
|
@@ -480,14 +480,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func openDatabase() {
|
|
|
- dcAccounts.openDatabase()
|
|
|
- }
|
|
|
-
|
|
|
- func closeDatabase() {
|
|
|
- dcAccounts.closeDatabase()
|
|
|
- }
|
|
|
-
|
|
|
func deleteCurrentAccount() {
|
|
|
_ = dcAccounts.remove(id: dcAccounts.getSelected().id)
|
|
|
}
|