diff options
-rw-r--r-- | macosx/Controller.mm | 20 | ||||
-rw-r--r-- | macosx/ScanController.mm | 6 |
2 files changed, 15 insertions, 11 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index ac2f6cbc7..8bfd7cb23 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -522,27 +522,36 @@ static int FormatSettings[3][4] = case HB_STATE_WORKDONE: { - [self EnableUI: YES]; + //[self EnableUI: YES]; [fStatusField setStringValue: _( @"Done." )]; [fRipIndicator setIndeterminate: NO]; [fRipIndicator setDoubleValue: 0.0]; [fRipButton setTitle: _( @"Start" )]; - + /* Restore dock icon */ [self UpdateDockIcon: -1.0]; - + [fPauseButton setEnabled: NO]; [fPauseButton setTitle: _( @"Pause" )]; [fRipButton setEnabled: YES]; [fRipButton setTitle: _( @"Start" )]; - + /* FIXME */ hb_job_t * job; while( ( job = hb_job( fHandle, 0 ) ) ) { hb_rem( fHandle, job ); } - break; + + /* Lets alert the user that the encode has finished */ + int status; + NSBeep(); + status = NSRunAlertPanel(@"Put down that cocktail...",@"your HandBrake encode is done!", @"OK", nil, nil); + if ( status == NSAlertDefaultReturn ) + { + [self EnableUI: YES]; + } + break; } } @@ -2298,6 +2307,7 @@ the user is using "Custom" settings by determining the sender*/ return; /* Alert user before deleting preset */ /* Comment out for now, tie to user pref eventually */ + //NSBeep(); status = NSRunAlertPanel(@"Warning!", @"Are you sure that you want to delete the selected preset?", @"OK", @"Cancel", nil); diff --git a/macosx/ScanController.mm b/macosx/ScanController.mm index cad783377..937b177fa 100644 --- a/macosx/ScanController.mm +++ b/macosx/ScanController.mm @@ -96,12 +96,6 @@ [fDetectedPopUp selectItemAtIndex: 0]; - /* - if( [fMatrix isEnabled] ) - { - [self EnableUI: YES]; - } - */ } - (void) EnableUI: (bool) b |