Adding support for elapsed time on all streams, library and radio sources.
[MenuTunes.git] / MTBlingController.m
index fb1a66b..7541747 100755 (executable)
@@ -8,6 +8,7 @@
 
 #import "MTBlingController.h"
 #import "MTeSerialNumber.h"
+#import "MainController.h"
 
 #define APP_SUPPORT_PATH_STRING [@"~/Library/Application Support/MenuTunes/" stringByExpandingTildeInPath]
 #define LICENSE_PATH_STRING [APP_SUPPORT_PATH_STRING stringByAppendingString:@"/.license"]
                           nil, nil, nil,
                           NSLocalizedString(@"failed_msg", @"Failed Message"));
     }
-    
+    [[MainController sharedController] blingTime];
 }
 
 - (int)checkKeyFile
 {
     if ( ! (checkDone == 2475) ) {
         if ( ! ([self checkKeyFile] == 7465) ) {
-            return 0
+            checkDone = 0;
         } else {
-            return 2475;
+            checkDone = 2475;
         }
     }
+    return checkDone;
 }
 
 - (void)finishValidSheet:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo