Reorder Tabs for preference window, add preference for whether to load

and save CAN bus connections.
This commit is contained in:
Collin Kidder
2019-02-24 20:45:27 -05:00
parent 53c5641038
commit b91dad5f03
3 changed files with 24 additions and 3 deletions
+6 -2
View File
@@ -8,6 +8,7 @@
#include "connections/canconfactory.h"
#include "connections/canconmanager.h"
#include "canbus.h"
#include <QSettings>
ConnectionWindow::ConnectionWindow(QWidget *parent) :
QDialog(parent),
@@ -41,8 +42,11 @@ ConnectionWindow::ConnectionWindow(QWidget *parent) :
ui->btnSendText->setEnabled(false);
ui->lineSend->setEnabled(false);
/* load connection configuration */
loadConnections();
if (settings.value("Main/SaveRestoreConnections", false).toBool())
{
/* load connection configuration */
loadConnections();
}
ui->rbSocketCAN->setEnabled(isSerialBusAvailable());