Browse Source

Fix for crashing users!!

pull/92/head
Abhishek 4 years ago
parent
commit
75d09a39b9
  1. 4
      Clocker/AppDelegate.swift

4
Clocker/AppDelegate.swift

@ -43,13 +43,15 @@ open class AppDelegate: NSObject, NSApplicationDelegate {
} }
public func applicationDidFinishLaunching(_: Notification) { public func applicationDidFinishLaunching(_: Notification) {
migrateOverridenTimezones()
// Initializing the event store takes really long // Initializing the event store takes really long
EventCenter.sharedCenter() EventCenter.sharedCenter()
// Required for migrating our model type to CoreModelKit // Required for migrating our model type to CoreModelKit
NSKeyedUnarchiver.setClass(CoreModelKit.TimezoneData.classForKeyedUnarchiver(), forClassName: "Clocker.TimezoneData") NSKeyedUnarchiver.setClass(CoreModelKit.TimezoneData.classForKeyedUnarchiver(), forClassName: "Clocker.TimezoneData")
// For users, still on the old timezones, only migrate timezonezes once setClass has been called
migrateOverridenTimezones()
AppDefaults.initialize() AppDefaults.initialize()
// Check if we can show the onboarding flow! // Check if we can show the onboarding flow!

Loading…
Cancel
Save