fixing old issues

This commit is contained in:
LarsBrubaker 2020-12-27 07:30:06 -08:00
parent ff1ea976f3
commit e990ce1fe8
3 changed files with 13 additions and 13297 deletions

View file

@ -205,12 +205,14 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
exportPlugin.Initialize(printer);
var exportGCodeButton = menuTheme.CreateDialogButton("Export".Localize());
exportGCodeButton.Name = "Export Gcode Button";
exportGCodeButton.Enabled = exportPlugin.Enabled;
exportGCodeButton.ToolTipText = exportPlugin.Enabled ? exportType : exportPlugin.DisabledReason;
exportGCodeButton.Click += (s, e) =>
{
this.CloseMenu();
ExportPrintItemPage.DoExport(
new[] { new InMemoryLibraryItem(printer.Bed.Scene) },
printer,

View file

@ -353,6 +353,17 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
this.RebuildTree();
}
if (sceneContext?.Scene?.SelectedItem != null)
{
UiThread.RunOnIdle(() =>
{
// make sure the selected item is still selected after reload
var currentItem = sceneContext.Scene.SelectedItem;
sceneContext.Scene.SelectedItem = null;
sceneContext.Scene.SelectedItem = currentItem;
});
}
}
private void GetNearFar(out double zNear, out double zFar)