diff options
Diffstat (limited to 'macosx/DriveDetector.m')
-rw-r--r-- | macosx/DriveDetector.m | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/macosx/DriveDetector.m b/macosx/DriveDetector.m index 61f722960..b79e969de 100644 --- a/macosx/DriveDetector.m +++ b/macosx/DriveDetector.m @@ -40,14 +40,17 @@ - (void) run { - /* 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]; + 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]; + } } - (void) stop |