Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void ICommandBar.Update (object activeTarget)
{
if (!toolbarEnabled)
return;
RoundButton.OperationIcon operation;
try {
var ci = GetStartButtonCommandInfo (out operation);
if (ci.Enabled != button.Sensitive)
button.Sensitive = ci.Enabled;
} catch (Exception ex) {
LoggingService.LogError ("Could not load toolbar properly");
}
button.Icon = operation;
var stopped = operation != RoundButton.OperationIcon.Stop;
if (configurationCombosBox.Sensitive != stopped)
configurationCombosBox.Sensitive = stopped;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment