Put export icon on export

This commit is contained in:
Lars Brubaker 2021-03-03 14:32:40 -08:00
parent 4e586eb03b
commit 8e6450ab35
2 changed files with 21 additions and 5 deletions

View file

@ -539,12 +539,24 @@ namespace MatterHackers.MatterControl
}
else
{
innerButton = new TextButton(buttonParams.ButtonText, this)
if (buttonParams.Icon == null)
{
Name = buttonParams.ButtonName,
Enabled = buttonParams.ButtonEnabled,
ToolTipText = buttonParams.ButtonTooltip,
};
innerButton = new TextButton(buttonParams.ButtonText, this)
{
Name = buttonParams.ButtonName,
Enabled = buttonParams.ButtonEnabled,
ToolTipText = buttonParams.ButtonTooltip,
};
}
else
{
innerButton = new TextIconButton(buttonParams.ButtonText, buttonParams.Icon, this)
{
Name = buttonParams.ButtonName,
Enabled = buttonParams.ButtonEnabled,
ToolTipText = buttonParams.ButtonTooltip,
};
}
}
innerButton.Click += (s, e) =>