From 1386cf8e790205f5fcebd3f985540d91377a2581 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 11 Sep 2022 15:50:33 -0400 Subject: [PATCH] Bring back iVersion. --- Clocker/AppDelegate.swift | 5 +++++ Clocker/Dependencies/iVersion/iVersion.m | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Clocker/AppDelegate.swift b/Clocker/AppDelegate.swift index d2f9169..8e1bf08 100644 --- a/Clocker/AppDelegate.swift +++ b/Clocker/AppDelegate.swift @@ -56,6 +56,11 @@ open class AppDelegate: NSObject, NSApplicationDelegate { checkIfRunFromApplicationsFolder() #endif } + + public func applicationWillFinishLaunching(_: Notification) { + iVersion.sharedInstance().useAllAvailableLanguages = true + iVersion.sharedInstance().verboseLogging = false + } public func applicationDockMenu(_: NSApplication) -> NSMenu? { let menu = NSMenu(title: "Quick Access") diff --git a/Clocker/Dependencies/iVersion/iVersion.m b/Clocker/Dependencies/iVersion/iVersion.m index 7eae8eb..8b1aee1 100755 --- a/Clocker/Dependencies/iVersion/iVersion.m +++ b/Clocker/Dependencies/iVersion/iVersion.m @@ -109,6 +109,11 @@ static NSString *mostRecentVersionInDict(NSDictionary *dictionary) @implementation iVersion ++ (void)load +{ + [self performSelectorOnMainThread:@selector(sharedInstance) withObject:nil waitUntilDone:NO]; +} + + (iVersion *)sharedInstance { static iVersion *sharedInstance = nil;