Commit c7c309ce authored by Felix Paul Kühne's avatar Felix Paul Kühne

* introduction of a widget-free progress bar dialogue, partially already...

* introduction of a widget-free progress bar dialogue, partially already committed in [15617] (core and OSX only, refs #553)
parent b67e6fc2
...@@ -233,22 +233,19 @@ ...@@ -233,22 +233,19 @@
-(void)updateDialog -(void)updateDialog
{ {
int i = 0; if( p_dialog->i_flags & DIALOG_USER_PROGRESS )
for( i = 0 ; i< p_dialog->i_widgets; i++ )
{ {
if( p_dialog->i_flags & DIALOG_USER_PROGRESS ) [o_prog_description setStringValue: \
{ [NSString stringWithUTF8String: p_dialog->psz_description]];
[o_prog_description setStringValue: \ [o_prog_bar setDoubleValue: \
[NSString stringWithUTF8String: p_dialog->psz_description]]; (double)(p_dialog->val.f_float)];
[o_prog_bar setDoubleValue: \ msg_Dbg( p_intf, "new value: %f", [o_prog_bar doubleValue] );
(double)(p_dialog->val.f_float)];
if( [o_prog_bar doubleValue] == 100.0 ) if( [o_prog_bar doubleValue] == 100.0 )
{ {
/* we are done, let's hide */ /* we are done, let's hide */
[self hideDialog]; [self hideDialog];
return; return;
}
} }
} }
} }
......
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