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 @@
-(void)updateDialog
{
int i = 0;
for( i = 0 ; i< p_dialog->i_widgets; i++ )
if( p_dialog->i_flags & DIALOG_USER_PROGRESS )
{
if( p_dialog->i_flags & DIALOG_USER_PROGRESS )
{
[o_prog_description setStringValue: \
[NSString stringWithUTF8String: p_dialog->psz_description]];
[o_prog_bar setDoubleValue: \
(double)(p_dialog->val.f_float)];
[o_prog_description setStringValue: \
[NSString stringWithUTF8String: p_dialog->psz_description]];
[o_prog_bar setDoubleValue: \
(double)(p_dialog->val.f_float)];
msg_Dbg( p_intf, "new value: %f", [o_prog_bar doubleValue] );
if( [o_prog_bar doubleValue] == 100.0 )
{
/* we are done, let's hide */
[self hideDialog];
return;
}
if( [o_prog_bar doubleValue] == 100.0 )
{
/* we are done, let's hide */
[self hideDialog];
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