OSDN Git Service

MacGUI: don't reset codecs popup when changing format, if the new format supports...
[handbrake-jp/handbrake-jp-git.git] / macosx / DriveDetector.m
index b79e969..61f7229 100644 (file)
 
 - (void) run
 {
-       if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DisableDvdAutoDetect"] == 0)
-       {
-               /* Set up a timer to check devices every second */
-               fTimer = [NSTimer scheduledTimerWithTimeInterval: 1.0 target: self
-                                                                                               selector: @selector( detectTimer: ) userInfo: nil repeats: YES];
-               [[NSRunLoop currentRunLoop] addTimer: fTimer forMode:
-                       NSModalPanelRunLoopMode];
-               
-               /* Do a first update right away */
-               [fTimer fire];
-       }
+    /* Set up a timer to check devices every second */
+    fTimer = [NSTimer scheduledTimerWithTimeInterval: 1.0 target: self
+        selector: @selector( detectTimer: ) userInfo: nil repeats: YES];
+    [[NSRunLoop currentRunLoop] addTimer: fTimer forMode:
+        NSModalPanelRunLoopMode];
+
+    /* Do a first update right away */
+    [fTimer fire];
 }
 
 - (void) stop