fixing old issues
This commit is contained in:
parent
ff1ea976f3
commit
e990ce1fe8
3 changed files with 13 additions and 13297 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue