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

@ -32,6 +32,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using MatterHackers.Agg;
using MatterHackers.Agg.Platform;
using MatterHackers.Agg.UI;
using MatterHackers.Localizations;
using MatterHackers.MatterControl.CustomWidgets;
@ -220,6 +221,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
this.CloseMenu();
};
},
Icon = StaticData.Instance.LoadIcon("cube_export.png", 16, 16, theme.InvertIcons),
ButtonEnabled = exportPlugin.Enabled,
ButtonName = "Export Gcode Button",
ButtonAction = (widget) =>
@ -232,6 +234,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
},
});
exportGCodeButton.Enabled = startPrintButton.Enabled;
exportGCodeButton.BackgroundRadius = 3;
exportGCodeButton.ToolTipText = "More Export Options".Localize();