Browse Source

Bring back iVersion.

pull/113/head
Abhishek 2 years ago
parent
commit
1386cf8e79
  1. 5
      Clocker/AppDelegate.swift
  2. 5
      Clocker/Dependencies/iVersion/iVersion.m

5
Clocker/AppDelegate.swift

@ -57,6 +57,11 @@ open class AppDelegate: NSObject, NSApplicationDelegate {
#endif #endif
} }
public func applicationWillFinishLaunching(_: Notification) {
iVersion.sharedInstance().useAllAvailableLanguages = true
iVersion.sharedInstance().verboseLogging = false
}
public func applicationDockMenu(_: NSApplication) -> NSMenu? { public func applicationDockMenu(_: NSApplication) -> NSMenu? {
let menu = NSMenu(title: "Quick Access") let menu = NSMenu(title: "Quick Access")

5
Clocker/Dependencies/iVersion/iVersion.m

@ -109,6 +109,11 @@ static NSString *mostRecentVersionInDict(NSDictionary *dictionary)
@implementation iVersion @implementation iVersion
+ (void)load
{
[self performSelectorOnMainThread:@selector(sharedInstance) withObject:nil waitUntilDone:NO];
}
+ (iVersion *)sharedInstance + (iVersion *)sharedInstance
{ {
static iVersion *sharedInstance = nil; static iVersion *sharedInstance = nil;

Loading…
Cancel
Save