diff --git a/mainwindow.cpp b/mainwindow.cpp index a1adff4..b66aa14 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -34,6 +34,9 @@ MainWindow::MainWindow(QWidget *parent) : checkingTemperature = settings.value("core/checktemperature").toBool(); ui->checktemp->setChecked(checkingTemperature); + ui->etmpspin->setValue(settings.value("user/extrudertemp").toInt()); + ui->btmpspin->setValue(settings.value("user/bedtemp").toInt()); + if(!firstrun) echo = settings.value("core/echo").toBool(); else echo = false; @@ -81,6 +84,8 @@ MainWindow::~MainWindow() settings.setValue("printer/baudrateIndex", ui->baudbox->currentIndex()); settings.setValue("core/checktemperature", ui->checktemp->isChecked()); + settings.setValue("user/extrudertemp", ui->estepspin->value()); + settings.setValue("user/bedtemp", ui->btmpspin->value()); if(firstrun) settings.setValue("core/firstrun", true); settings.beginWriteArray("user/recentfiles"); diff --git a/settingswindow.ui b/settingswindow.ui index 2971a91..924371e 100644 --- a/settingswindow.ui +++ b/settingswindow.ui @@ -88,6 +88,9 @@ + + Show every sent command in console + Echo commands