Commit 5aa83bf4 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx dialog provider: complete EXTENSION_WIDGET_SPIN_ICON implementation and fixed compilation

parent 8e213b47
...@@ -477,8 +477,7 @@ bool checkProgressPanel (void *priv) ...@@ -477,8 +477,7 @@ bool checkProgressPanel (void *priv)
config_PutPsz(p_intf, "lastfm-username", [lastFMUsername UTF8String]); config_PutPsz(p_intf, "lastfm-username", [lastFMUsername UTF8String]);
config_PutPsz(p_intf, "lastfm-password", [lastFMPassword UTF8String]); config_PutPsz(p_intf, "lastfm-password", [lastFMPassword UTF8String]);
config_SaveConfigFile(p_intf, "main"); config_SaveConfigFile(p_intf);
config_SaveConfigFile(p_intf, "audioscrobbler");
} }
else else
msg_Err(p_intf,"Last.FM module not found, no action"); msg_Err(p_intf,"Last.FM module not found, no action");
...@@ -771,6 +770,16 @@ static void updateControlFromWidget(NSView *control, extension_widget_t *widget, ...@@ -771,6 +770,16 @@ static void updateControlFromWidget(NSView *control, extension_widget_t *widget,
[image release]; [image release];
break; break;
} }
case EXTENSION_WIDGET_SPIN_ICON:
{
assert([control isKindOfClass:[NSProgressIndicator class]]);
NSProgressIndicator *progressIndicator = (NSProgressIndicator *)control;
if( widget->i_spin_loops != 0 )
[progressIndicator startAnimation:self];
else
[progressIndicator stopAnimation:self];
break;
}
} }
} }
......
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