import into now printers correctly.
This commit is contained in:
parent
52f1db1222
commit
4e8be396b8
3 changed files with 16 additions and 11 deletions
|
|
@ -36,6 +36,7 @@ using System.Linq;
|
|||
|
||||
namespace MatterHackers.MatterControl.SlicerConfiguration
|
||||
{
|
||||
using Agg;
|
||||
using Localizations;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Net;
|
||||
|
|
@ -50,6 +51,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
private static EventHandler unregisterEvents;
|
||||
|
||||
public static RootedObjectEventHandler ProfilesListChanged = new RootedObjectEventHandler();
|
||||
|
||||
static ProfileManager()
|
||||
{
|
||||
SliceSettingsWidget.SettingChanged.RegisterEvent(SettingsChanged, ref unregisterEvents);
|
||||
|
|
@ -199,8 +202,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
break;
|
||||
}
|
||||
|
||||
|
||||
ActiveSliceSettings.SwitchToProfile(printerInfo.ID);
|
||||
ProfileManager.Instance.Save();
|
||||
}
|
||||
|
||||
internal static void AcquireNewProfile(string make, string model, string printerName)
|
||||
|
|
@ -289,9 +291,11 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
File.Delete(profilePath);
|
||||
}
|
||||
|
||||
// Refresh after remove
|
||||
// Refresh after change
|
||||
UiThread.RunOnIdle(() => ActiveSliceSettings.Instance = LoadEmptyProfile());
|
||||
}
|
||||
|
||||
ProfilesListChanged.CallEvents(null, null);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue