Fixed import to not rely on layer_height validation

- Import preset no longer checks for slicer and will validate import on weather or not any settigns were valid
 - calling Import from MenuOptionFIle will cause the same error message as importing a printer form the settings import page
 - Import to new printer now attempts to load values and validates success on importing a valid setting
This commit is contained in:
Matt Moening 2016-08-11 14:59:23 -07:00
parent 89f12946a4
commit 5b42eac301
3 changed files with 41 additions and 38 deletions

View file

@ -65,7 +65,10 @@ namespace MatterHackers.MatterControl
private void ImportSettingsFile(string settingsFilePath)
{
ProfileManager.ImportFromExisting(settingsFilePath);
if(!ProfileManager.ImportFromExisting(settingsFilePath))
{
StyledMessageBox.ShowMessageBox(null, "Oops! Settings file '{0}' did not contain any settings we could import.".Localize().FormatWith(Path.GetFileName(settingsFilePath)), "Unable to Import".Localize());
}
}
private void importFile_Click()