Commit 1e952e5e authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: cosmetics

parent 5d6ac80b
...@@ -79,7 +79,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil; ...@@ -79,7 +79,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
else if( [o_type isEqualToString: @"dialog-login"] ) else if( [o_type isEqualToString: @"dialog-login"] )
[self performSelectorOnMainThread:@selector(showLoginDialog:) withObject:o_value waitUntilDone:YES]; [self performSelectorOnMainThread:@selector(showLoginDialog:) withObject:o_value waitUntilDone:YES];
else if( [o_type isEqualToString: @"dialog-progress-bar"] ) else if( [o_type isEqualToString: @"dialog-progress-bar"] )
[self performSelector:@selector(showProgressDialogOnMainThread:) withObject: o_value afterDelay:3.00]; [self performSelectorOnMainThread:@selector(showProgressDialogOnMainThread:) withObject: o_value waitUntilDone:YES];
else else
msg_Err( VLCIntf, "unhandled dialog type: '%s'", type ); msg_Err( VLCIntf, "unhandled dialog type: '%s'", type );
} }
...@@ -166,13 +166,16 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil; ...@@ -166,13 +166,16 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
/* we work-around a Cocoa limitation here, since you cannot delay an execution /* we work-around a Cocoa limitation here, since you cannot delay an execution
* on the main thread within a single call */ * on the main thread within a single call */
if (VLCIntf) if (VLCIntf)
[self performSelectorOnMainThread:@selector(showProgressDialog:) withObject:o_value waitUntilDone:YES]; [self performSelector:@selector(showProgressDialog:) withObject: o_value afterDelay:3.00];
} }
-(void)showProgressDialog: (NSValue *)o_value -(void)showProgressDialog: (NSValue *)o_value
{ {
dialog_progress_bar_t *p_dialog = [o_value pointerValue]; dialog_progress_bar_t *p_dialog = [o_value pointerValue];
if (!p_dialog)
return;
if( p_dialog->title != NULL ) if( p_dialog->title != NULL )
{ {
[o_prog_win setTitle: [NSString stringWithUTF8String: p_dialog->title]]; [o_prog_win setTitle: [NSString stringWithUTF8String: p_dialog->title]];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment