summaryrefslogtreecommitdiffstats
path: root/macosx/DriveDetector.m
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-06-14 20:19:59 +0000
committerdynaflash <[email protected]>2007-06-14 20:19:59 +0000
commit51a0dfdd04c910de55aa09db8a7039ea25999735 (patch)
tree0488030392223ca4fec78102893443e49b145b15 /macosx/DriveDetector.m
parentfbab2d391f2a1d7312aade22d3ef2802f879b338 (diff)
MacGui: Disable DVD Drive Auto-Detect option in preferences.
- this feature allows you to use other dvd aware apps (mactheripper, dvd player, etc.) while using HB to encode a folder on your hard drive. - checkbox in prefs nib to disable dvd drive auto detect - when checked, hb does not poll for available drives at all. - can still manually navigate to a dvd and select it though. - is unchecked by default. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@622 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/DriveDetector.m')
-rw-r--r--macosx/DriveDetector.m19
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