Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
2fae50dd2e
1 changed files with 16 additions and 18 deletions
|
|
@ -313,14 +313,12 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
public static Printer GetAutoConnectProfile(out bool connectionAvailable)
|
||||
{
|
||||
string query = string.Format("SELECT * FROM Printer;");
|
||||
IEnumerable<Printer> printer_profiles = (IEnumerable<Printer>)Datastore.Instance.dbSQLite.Query<Printer>(query);
|
||||
string[] comportNames = FrostedSerialPort.GetPortNames();
|
||||
|
||||
Printer printerToSelect = null;
|
||||
connectionAvailable = false;
|
||||
|
||||
foreach (Printer printer in printer_profiles)
|
||||
foreach (Printer printer in Datastore.Instance.dbSQLite.Query<Printer>("SELECT * FROM Printer;"))
|
||||
{
|
||||
if (printer.AutoConnectFlag)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue