diff --git a/src/AllPlot.cpp b/src/AllPlot.cpp index 41ded39af..eda784646 100644 --- a/src/AllPlot.cpp +++ b/src/AllPlot.cpp @@ -218,7 +218,6 @@ AllPlot::AllPlot(AllPlotWindow *parent, MainWindow *mainWindow): if (appsettings->value(this, GC_SHADEZONES, true).toBool()==false) shade_zones = false; - smooth = appsettings->value(this, GC_RIDE_PLOT_SMOOTHING).toInt(); if (smooth < 1) smooth = 1; // create a background object for shading @@ -976,7 +975,6 @@ void AllPlot::setSmoothing(int value) { smooth = value; - appsettings->setValue(GC_RIDE_PLOT_SMOOTHING, value); recalc(); } diff --git a/src/AllPlotWindow.cpp b/src/AllPlotWindow.cpp index ec00b7d99..857ca3f72 100644 --- a/src/AllPlotWindow.cpp +++ b/src/AllPlotWindow.cpp @@ -63,10 +63,7 @@ AllPlotWindow::AllPlotWindow(MainWindow *mainWindow) : cl->addWidget(showLabel); showStack = new QCheckBox(tr("Stacked view"), this); - if (appsettings->value(this, GC_RIDE_PLOT_STACK).toInt()) - showStack->setCheckState(Qt::Checked); - else - showStack->setCheckState(Qt::Unchecked); + showStack->setCheckState(Qt::Unchecked); cl->addWidget(showStack); stackWidth = 15; @@ -119,10 +116,7 @@ AllPlotWindow::AllPlotWindow(MainWindow *mainWindow) : showPower->addItem(tr("Power - shade")); showPower->addItem(tr("No Power")); cl->addWidget(showPower); - if (appsettings->value(this, GC_SHADEZONES, true).toBool() == true) - showPower->setCurrentIndex(0); - else - showPower->setCurrentIndex(1); + showPower->setCurrentIndex(0); comboDistance = new QComboBox(); comboDistance->addItem(tr("X Axis Shows Time")); @@ -1198,7 +1192,8 @@ AllPlotWindow::setByDistance(int value) void AllPlotWindow::setSmoothing(int value) { - if (!current) return; + //if (!current) return; + smoothSlider->setValue(value); // recalculate etc fullPlot->setSmoothing(value); @@ -1308,8 +1303,6 @@ AllPlotWindow::showStackChanged(int value) // out of date. Then call setAllPlotWidgets // to make sure all the controls are setup // and the right widgets are hidden/shown. - appsettings->setValue(GC_RIDE_PLOT_STACK, value); - if (value) { // refresh plots resetStackedDatas();