Interactive save shouldn't be more encumbered than auto save
- Don't prompt for Save location if we're already auto saving to default locations in other contexts
This commit is contained in:
parent
fb84b6a18a
commit
ddfeb79d17
1 changed files with 2 additions and 18 deletions
|
|
@ -343,14 +343,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
Title = "Save".Localize(),
|
||||
Action = async () =>
|
||||
{
|
||||
if (sceneContext.printItem == null)
|
||||
{
|
||||
UiThread.RunOnIdle(OpenSaveAsWindow);
|
||||
}
|
||||
else
|
||||
{
|
||||
await this.SaveChanges();
|
||||
}
|
||||
await this.SaveChanges();
|
||||
}
|
||||
},
|
||||
new NamedAction()
|
||||
|
|
@ -2017,16 +2010,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
try
|
||||
{
|
||||
// Force to .mcx
|
||||
if (Path.GetExtension(sceneContext.printItem.FileLocation) != ".mcx")
|
||||
{
|
||||
sceneContext.printItem.FileLocation = Path.ChangeExtension(sceneContext.printItem.FileLocation, ".mcx");
|
||||
}
|
||||
|
||||
// TODO: Hook up progress reporting
|
||||
Scene.Save(sceneContext.printItem.FileLocation, ApplicationDataStorage.Instance.ApplicationLibraryDataPath);
|
||||
|
||||
sceneContext.printItem.PrintItem.Commit();
|
||||
sceneContext.Save();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue