Merge branch 'master' into master
This commit is contained in:
commit
f35d4aaf7b
1 changed files with 6 additions and 16 deletions
|
|
@ -1698,22 +1698,6 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
}
|
||||
|
||||
if (this.ActivePrinter is PrinterConfig printer
|
||||
&& printer.Settings.PrinterSelected
|
||||
&& printer.Settings.GetValue<bool>(SettingsKey.auto_connect))
|
||||
{
|
||||
ApplicationController.StartupTasks.Add(new ApplicationController.StartupTask()
|
||||
{
|
||||
Title = "Auto Connect".Localize(),
|
||||
Priority = 100,
|
||||
Action = (progress, cancellationToken) =>
|
||||
{
|
||||
printer.Connection.Connect();
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (AssetObject3D.AssetManager == null)
|
||||
{
|
||||
AssetObject3D.AssetManager = new AssetManager();
|
||||
|
|
@ -1806,6 +1790,12 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
this.OnOpenPrintersChanged(new OpenPrintersChangedEventArgs(printer, OpenPrintersChangedEventArgs.OperationType.Add));
|
||||
|
||||
if (printer.Settings.PrinterSelected
|
||||
&& printer.Settings.GetValue<bool>(SettingsKey.auto_connect))
|
||||
{
|
||||
printer.Connection.Connect();
|
||||
}
|
||||
|
||||
return printer;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue